From patchwork Thu Jun 4 14:51:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1328 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3AB383F0D3 for ; Thu, 4 Jun 2020 16:52:01 +0200 (CEST) Received: by mail-pl1-f197.google.com with SMTP id d23sf1916391pls.18 for ; Thu, 04 Jun 2020 07:52:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591282320; cv=pass; d=google.com; s=arc-20160816; b=Sez4Q7dVn8/Z4DKwFcZCOOA00O9611JHzj+D53/Ozf1u0//2hAVFI8g2T5xdtNGclk hUl7/4V8z1bZ/jtBEJLG0fVeKw+iJeezgzxUg6AfrV1G5fxCxSpYhgc+M6QxvRF5Dc/i Dz9sbWb/Ja9eUDceVybN0hn1aVj8c3be+mCau0bmSbbQzvqSBPGPDXZ9+aijUO53lOKC ZlkPQsiEjtCngQH1FFsNB3KBB+6qTx0BfMJY6ByAh2x0a2mUyElwZrfwQ57VkUFeEgzq O50rzUf2A80yv4F1kSn+ffrztA3WS+kdBKAoL+9ouQdQ8cZiesb1H22Yt0bUC4ofs+EF DTkA== 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=EFqfBptohTxYtbp2ZA4N81gYe5Xe5lwvalKgNCN8nA4=; b=Kxrn92Phofvf0U7cybLqQBzK/Q01Y7bs5rX7jSvv/7Dqjh/mqW60i6nsgvjjUEjxqp ZGBvD2lRy52A3a9h2O8jFO9y2Qk4EUwuD4QcVMu1LwPguIs5r/1RbzwFHbo5F2De1bWd Sjz1D71sC1tw5wJi9qk7XgtlPnvc3Ffhaj83ihEemH7a3/RCtdT+9RKmc11P7IakMAw7 YrMMNWXPWdcH8AWVgqjTy2zy02HP354zqQHY9Ju8p7cwnvsK/jiXSTsMh1sDsFs0vCv4 ShV5GR2FtQZpCspPvZr+hLYL7Act2NiCbdU+Io2EjZ16Jn8+ozFcN1SlkGf1byIZVHsq 1qTg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oebbuw+M; 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=EFqfBptohTxYtbp2ZA4N81gYe5Xe5lwvalKgNCN8nA4=; b=TP2ozjWVBPF5Kd3qF7qv9WkzJjBDB+PQCanEeD6bSZUQphpdAepfBt5EjOPXejdYK5 UvJxZ0evVqP/CiQxZqLCuUr4XpLiVGAmZL94b2mes5kJHn4HqMJqbMavYZtSCnMuG92Q S9JzKqKl20ik1EirD785044/FcCskexapnt/4= 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=EFqfBptohTxYtbp2ZA4N81gYe5Xe5lwvalKgNCN8nA4=; b=fwOSHWvlLX247I517r0GGl/LX7EVNbxTj3ytCgGAgVJruT84J0pZjcsxX3Xm5inPTk UumquI3jmEWBszxRGKmqn+AULUxO4LDNU+i/91MgqQTOml/Fw4rX2BSnaaXEFsfBua6R ieO4hFTaE7PMoh3GkGHof6qrnil2yG6AQUkn5o6wVXcHxEeHv0dD5SGZXknGSQSx8BCx 4i9uriU/EErSBWcYOb9ASnOl1Z7mXdQfLgb88gandPKyWsOX78U8+PcezzhrM89gH+vQ 9WTvDgx76tkBukgRHqj50as1lJQgNG+5soXV78liyVm9+aBFLdSDT5pKwrU5ZTjLYoGT a1Fw== X-Gm-Message-State: AOAM533bIILES/NIRk5L3OUfcWENUrKY1gO2yezCUjQoI2VSNJDbpsRv FHru6Dck90A8voiZlZAZANTbhVSL X-Google-Smtp-Source: ABdhPJxGuOLQNa5VCj0WscxgZzS0r4VsvFhoHOjGEN9HCdCFb9niAa+b6o2MJJeJD3STIuiflgdatw== X-Received: by 2002:aa7:96e9:: with SMTP id i9mr4788406pfq.232.1591282319644; Thu, 04 Jun 2020 07:51:59 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:2c94:: with SMTP id s142ls820591pfs.4.gmail; Thu, 04 Jun 2020 07:51:59 -0700 (PDT) X-Received: by 2002:a63:368c:: with SMTP id d134mr4754576pga.393.1591282319067; Thu, 04 Jun 2020 07:51:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591282319; cv=none; d=google.com; s=arc-20160816; b=BLGNZiWYNndnv/IUevOTrSu3ssWC0gePc64OSEYoKbn2dndmYeBQKQe1/QLoCxNwPD taR8RHLwOTv9dHBs+bKRXjR4WAL6Ftrx+5QVHzuBxcUHfGvOL366r1pVVKgnziSUSEXX SCyDPLwaaJrb1PHOgTMwU3VbeEztVK/2OZMMXjB7po3UjbwYoJBq5u4tSYHFph35rdop PGmfOLdlBMIr4umPiGMbIcaw+aOwl6bQHzat3b4FlxVfDNPrCWFc/Q5Il3USURPlyd1S 1UxXeTj2Bi0P7Jl8y4vVdG14tP7JQOj6elBXNoLJUsUSXffSA/4x5Jz7BIaCy+2/gkFY s45g== 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=d20ccB6PVQmGHsflN7/kgqqNBLF8lJvbEcLUABZCXrI=; b=zw5rpsQKLy37Xzyj8nBNTSPhZTJfzsJAOpSnOmMtEn5xWnvae1mYGCiT8XULpExKHq DuhFseE02nk967S0MmTFHWPPD5UpXJB0RIrLNb3BLe3g63Ze057TwyMUUfjNTNzjaO7B I9WjMXW9wYloB/On/yy/Z328nfRDsto2bwBzjRY04n2CgRpzOdA93yLivUIRh4vyABmO fvedqUht69mWrzwtXgeXhhY5ao93/AH3mug20kpOo/UTE7vLNT1fs3t8eA50mgYc3ctr tNtyUlyjTlFKIFup/ZCnAn92Fp+HnK6j5+uJrCnrp3thcx5/9zKvL9J/BtzsW+xGoeeh rdMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oebbuw+M; 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 d8sor6674509pgb.87.2020.06.04.07.51.58 for (Google Transport Security); Thu, 04 Jun 2020 07:51:58 -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:a63:5fc8:: with SMTP id t191mr4731889pgb.185.1591282317977; Thu, 04 Jun 2020 07:51:57 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:41f4:94a8:1af3:a574]) by smtp.gmail.com with ESMTPSA id 2sm4831283pfz.39.2020.06.04.07.51.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2020 07:51:57 -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 v3 1/4] Makefile: Drop to handle rkspi image type Date: Thu, 4 Jun 2020 20:21:38 +0530 Message-Id: <20200604145141.356702-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200604145141.356702-1-jagan@amarulasolutions.com> References: <20200604145141.356702-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=oebbuw+M; 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 --- Changes for v3: - none 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