From patchwork Mon Jun 1 20:42:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1323 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 71F613F1D9 for ; Mon, 1 Jun 2020 22:42:39 +0200 (CEST) Received: by mail-pl1-f199.google.com with SMTP id s7sf852264plp.13 for ; Mon, 01 Jun 2020 13:42:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591044157; cv=pass; d=google.com; s=arc-20160816; b=OARUjEVsnFWvkrivtONUoqw91SpWTKniU4MNxfdr4Yb6Z+c6HwH7076WTcfOuUtjhN VVUQLI7Ofb2tpXHWXe04bfZ8l7yecfWJQZV0f0DgWWs59WfaMBAZNNTg/OHowUwTbIaP 1Aidr+SH0cqI+7NBvqxTP1IA8L5CtPHTfNTDjl80Cp7SNN+Dr2s1xq6WbbVuEidZtdfe ARecd3GKQgp8Yv7Rgw1eW4MPuMVaNRkiFGPtN1+Bf/31oVbA9uPWRt+1UhoTzM8UZKdM tI6/BC/y4XMZsJX5iPF5aQ1j6d34WtW8qxlSEpjZSc8drZ/SLyWO9jXx5GhJkLn/RuAP QLhw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=f1pggCEcMoVkLfkTduM6k0XM8y5EoD2spH49xQf2T5k=; b=EtVVyaDj+jAULkaNMHzabqqZcxUJyR4AgmkfAThjTKARrsX2w7UdJuWdXzWfUdYmA/ m2SF+7Fp1TwAxekvreTxzUwQ97x8WV8IkXZ5ycpCUuvi2oJTftWxxuSSue0KZwRdmqu8 Wze6g4MvExVaxzOfGeJUQcAvLsBg/fMeh1h+5wGPUwH0FbhV2+lFkgpi7e59F7pBco2p D6fainIBeqPXSL4uo/4LJ/XU5M/cUDbPWfGRYZuYLhXqaiJZcA3vtv10XcEC4p1K+LCG 3sJum6V3EVyhDlgyBq2NG80AaWMzxnr8hM8XURz42racP+tXwqkPTlI8Iwb7NEMeO4N0 YMoA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lpM+7QC7; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=f1pggCEcMoVkLfkTduM6k0XM8y5EoD2spH49xQf2T5k=; b=GFAGdoHsE2iFmwg3JVVI6Zy5aWloB/QAWbBLguvmeUT+BhOAk4hzQ3PF1mhuCe/Fvx ui5VgoxrfjrMbFTVx1ZRKoW9EIwMdiDQCYvIMc5xOSUtu98gxau3kKGkAJ1GQxpJxsUM hRT49v/oQwMqJRWPVlGJ7e2WO1xxKcGVLgI0g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=f1pggCEcMoVkLfkTduM6k0XM8y5EoD2spH49xQf2T5k=; b=GutGb9kalhWXAEfR0QXKjfB/zOtAnDd23I8xiAv7W5WdMNM0hW6xkw4I/AtH2ut25d Yg2Q7FizgMopprHl3AVnrI/CJHGsFg9iD2GXs+8UAFctN0I4wgXEoYAklIOXKRiDnfjD htjK1kJbbZwWV9hc262EDC27pm4tQXjopNolWmWKNFkSOg163aV+ngggoOH/030Wy/lJ fNF3b9/1wRfGsDfJqXIRKX7S0d5+soqnxoh52fWXFC9U4avKTYUukVoei4OZJK6/azLo Os/GbV4egw5VMPwpGWcyHDiGXlMqkDFByv7EnP/YVn1CPnlaizYYz+7cam4570lIcQVc RsHw== X-Gm-Message-State: AOAM5302RbcMLS4OXjH0eIdfxX2rBQkUt4NcuuflV/p2VhrFLH8X0EHh /BfHkDO/sM4hm7N4YZKhMQTm8k+0 X-Google-Smtp-Source: ABdhPJzcrBKz5PvbP0T4y0CDmFMgRuQbI2+MR/CF8beiPb9F/2V4kTnrsUdDP25Mxm/pp+fEn5rIWA== X-Received: by 2002:a17:90a:648c:: with SMTP id h12mr1312740pjj.229.1591044156975; Mon, 01 Jun 2020 13:42:36 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:ab89:: with SMTP id f9ls5187751plr.3.gmail; Mon, 01 Jun 2020 13:42:36 -0700 (PDT) X-Received: by 2002:a17:90a:c004:: with SMTP id p4mr1389616pjt.170.1591044156515; Mon, 01 Jun 2020 13:42:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591044156; cv=none; d=google.com; s=arc-20160816; b=DhpxaMcFOhvRhss9BQYzIUTOtYqy1y14qfBZEhTHmliWiouUuhO7ZOileQRzgEiP6b /oJ2ayoaTMcM0McTwFA9Xd3OzS4QeyK/we/6lgS+QvCyeeKNtIOCjT2MRF6i905QfkKc 6CDeSEqW9r2kby5tHThzHfUTaJ9MsbDCkEsIf9TOpBGUUZvSEGbDT/5bfBPC6oZP0g9t uWgNrek7cDQpTX1e78cvu2dJLBN/7yDVnOX+DnYjnjmlPHdS0BASqZxuZ202NIMwDZiA zJ4hGT4Yb10VApMO1InO7P8QsK3rEkBrcPuFjmkcrZD18fiUxF7frB76HWJA5cBUWjA3 eMsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=BNexMqhtjdTh16Uq9oCW3PAfLr/10uATBtmxs/MmdRw=; b=o1gBcs5AOgEuTr5UjyuFW7Dq8z8lF0LVgvvOuGDnIyL+W6pBua2GA/Ow4r1N9ydGy8 Ef0Z1t0q4jyTEWK/3Ozhac6fuCnV0J/1mlqidFKlqGLr+EDhpSAT9d+Ct04znimyCwZ4 hPkxEQbgVC/0oQDz0ziBPav3wy/Z8YxctA6gcwFoeL0sYi0ko9x9/01qhQxUZtk9Z1Pz 9hsR7yvWOAN04D8fpTac76gdEkYp/NYxoHUPl8iCGVoX+rRQaNifOqX/jOlk7eNV7Q3b T5dCJuO5O57UorJ68LyIae8UOU8j2L7byNGEYndilFORNnmbombyWgSOcUdmQpf89jnO uzcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lpM+7QC7; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id my14sor381911pjb.1.2020.06.01.13.42.36 for (Google Transport Security); Mon, 01 Jun 2020 13:42:36 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:1919:: with SMTP id 25mr1196124pjg.7.1591044156215; Mon, 01 Jun 2020 13:42:36 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:658b:ecbc:7ea4:1996]) by smtp.gmail.com with ESMTPSA id k7sm283581pga.87.2020.06.01.13.42.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 13:42:35 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass , Hugh Cole-Baker Cc: Suniel Mahesh , U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki Subject: [PATCH v2 1/4] Makefile: Drop to handle rkspi image type Date: Tue, 2 Jun 2020 02:12:10 +0530 Message-Id: <20200601204213.466120-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200601204213.466120-1-jagan@amarulasolutions.com> References: <20200601204213.466120-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lpM+7QC7; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , On rockchip platforms, SPI boot image creation is not straightforward like MMC boot image creation where former requires to specify tpl, spl in multimage format in mkimage, and later simply do a concatenate mkimaged-tpl with spl. On this note, let drop rkspi image type creation via kbuild and let inform via rockchip.rst Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Makefile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 3851dd9fa0..db3b6b9991 100644 --- a/Makefile +++ b/Makefile @@ -1438,22 +1438,15 @@ u-boot-with-spl.bin: $(SPL_IMAGE) $(SPL_PAYLOAD) FORCE ifeq ($(CONFIG_ARCH_ROCKCHIP),y) -# rockchip image type -ifeq ($(CONFIG_SPL_SPI_LOAD),y) -ROCKCHIP_IMG_TYPE := rkspi -else -ROCKCHIP_IMG_TYPE := rksd -endif - # TPL + SPL ifeq ($(CONFIG_SPL)$(CONFIG_TPL),yy) -MKIMAGEFLAGS_u-boot-tpl-rockchip.bin = -n $(CONFIG_SYS_SOC) -T $(ROCKCHIP_IMG_TYPE) +MKIMAGEFLAGS_u-boot-tpl-rockchip.bin = -n $(CONFIG_SYS_SOC) -T rksd tpl/u-boot-tpl-rockchip.bin: tpl/u-boot-tpl.bin FORCE $(call if_changed,mkimage) idbloader.img: tpl/u-boot-tpl-rockchip.bin spl/u-boot-spl.bin FORCE $(call if_changed,cat) else -MKIMAGEFLAGS_idbloader.img = -n $(CONFIG_SYS_SOC) -T $(ROCKCHIP_IMG_TYPE) +MKIMAGEFLAGS_idbloader.img = -n $(CONFIG_SYS_SOC) -T rksd idbloader.img: spl/u-boot-spl.bin FORCE $(call if_changed,mkimage) endif