From patchwork Wed Oct 23 19:56:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 875 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 00C943F08B for ; Wed, 23 Oct 2019 21:57:20 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id s1sf15914057pgm.2 for ; Wed, 23 Oct 2019 12:57:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571860638; cv=pass; d=google.com; s=arc-20160816; b=ObbekWPQfyQjvurSQQ9M48Wsc199FyziXxeuuW846q2nf5sALZpa3luAAa4Kp/3poc X6hIuC013eNbsgw1yYQAMAeVos2JOYM42/itR7mcffvOE7bDwR5LsQGXzgTdt5ds2F8C x8ou5DNCzvLG4LYCEhCH/ZVbfPl2pD8y2t8R4JMNWoNRQuYITh+uyjYA6hXOtG7nMgYi BKWKRU1Z+gkLgidBosRwComNupGXUZpEAw1da3XM/iGRlPCm9zLy0to9LFraQyGMorLU Cq2AvnKKn/nQvF84QeWia3KXa9qZmOZgK0hYh+m1RzSBNemaFjUAgxx9ss8fwUSndFeh fVHA== 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=E8YlCMSntFZkdItKbJTeNxk29cWtRGi1dsQiliTxTgM=; b=y1rvJ91lsk+Zmf6sL8NnUn6E8OAR0QAmm7GECs9mu0npwoI2znqHxdrDVnGiPcjwVf eA8LICq4npm0kpnT1VnDZowSSqs4Ewdt2R1avOF0IGw7kAgzaQzeZBwYQrjDLH1wVQTY SyyCQcmtYxfD+gQgfqhISat4IEUrHzS4NBB4uJsKZSPpnBspgXOzCBYfXjgwZ1/3O/4c SudpcoIHRiMYtTHBQuQolio9v2pI2HXpLUBYb3cEWjEo9Eeh/XNFZbOsfVJGw3YjT6Kn YMlHWqKACkjsm5dmpcJMySTNNA2kir7m5Pq+HTmTHZGxrXwCNtibVPDHAzwuwfUIvutP fCAQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=g9UWlVYW; 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=E8YlCMSntFZkdItKbJTeNxk29cWtRGi1dsQiliTxTgM=; b=qYqoVepDCr7xgL9TxIZZNBnPBNZnpaH3F8pXK6/y2J67xG4qybRnHpPdSTMDxQikWh R3C/5F8EjJVnr57zii3FQI3YUkvKLW1zQJdTbeH6nZ9x6BA5/fNPbIDLKfzRpZQ5msh9 lDGyOWGhDwY+APBytq4Hws3Gn2cvI2WEcbNuM= 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=E8YlCMSntFZkdItKbJTeNxk29cWtRGi1dsQiliTxTgM=; b=knfVc8+jJchTAUzAp7bltCoUQ2tywkPFvYR5sKESw7bI2vE3no/Ni9bTvLsRFr0jiX RI4tfATPViuLFs1/Yo0fff4N5nscxFH8OvvZACMM/H3fDFN71SzExaU5+84mHVTxumAF YgsLhLf7jxravEKV1l4o2nUQTnajbAlEyr6fYZryidtlohu9Lcz3TIUAw82BFJ21/pXb UtTIwn1ktVzpLMlDzS71psKzJ9U1ZK0smaaBlQfcwDWkB5FHyOcfAOSO/MQ6UjZj0imb bUDdGBtztJ6Dxb5ZCCfGGMQVLEm0F6zRfQ/5w39W3WbXjvAmuDV0H/xnqqopIZObknEi E7hQ== X-Gm-Message-State: APjAAAU1VYb/i/nGm5Z78mu6pDbanT939TCOULYqzkD9NYl4OYpYz+8V yehaMwdnTpx6YTO1spoNyQui4Mb2 X-Google-Smtp-Source: APXvYqzRQruJc2lUQKKyacfwgb4l6ilKJ+73DFeVaeWp/e5Ai8HSaTPXmrWhvdFPuFhosU8Ux0/wlA== X-Received: by 2002:a63:cc4a:: with SMTP id q10mr12116504pgi.221.1571860638468; Wed, 23 Oct 2019 12:57:18 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:6947:: with SMTP id e68ls999573pgc.6.gmail; Wed, 23 Oct 2019 12:57:18 -0700 (PDT) X-Received: by 2002:a63:f250:: with SMTP id d16mr7739667pgk.165.1571860637838; Wed, 23 Oct 2019 12:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571860637; cv=none; d=google.com; s=arc-20160816; b=rVg8JMbIpuIzlU3bVSF7Ev6RquzhW+/E2dEo6YzN6sU4/7/szIR22pTBoUy+4f/p2s MLEeGSne7mNucm/Ijq2n71r6TAlU2LqSN33Vr9f3GyTuwGhiZNRPSPvEad/tjSUSebQY jYlqZmxp3z3RZwBS2dtns2rpMllECYgEeGzQj7tPzxO55ePoTGX6eOlrsFs8Xfr+jm/D qOcZohJ7pOqsDqtsENV6y4X+W6V7n4rAtZ6yqDMCPAYdNMTcOe7VnuUZe9aor8CN5ppH PsNKqY5yoF48Vlnl9RYBOE53F+fwk32uBuOsCHBbas0s3vuQ+JnF34twVSQ2+9AOYgZh 23VA== 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=2IIX6hy/HPWIV2vnvPjHa7HNyD32IAzCXYHiNBs/B30=; b=mXwuRFLIpLIzlbGZwXQl3YMP3C4gp2bdP9fd6zS5OEgJMmjjh/lf4YF9gMp042Pqto xETW44TOZO4Xbl9L1fADYPheXWaVsQ1j4c0ljW6N/dEK4In9nWDbKmZiuRnH5eFAkVw3 D940chEc4asSnXNUDapiwR6pXLSlyfnqW8cfQjhFvbXZgVkKjS7KdgPe3kNyo4V1MxY5 uLy79qDaESQhPlqaIYp2rgP9rM1oqtvdOalSyUEpPa2kmier0tghhocc7+jJKfRhA4h3 tGM8va33V5z6a4jWTi2u0mJ8wfggPhppQYLfOOPbNyF2jHMlnmpsTNEEUPMh7NlGfjzv hXKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=g9UWlVYW; 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 g14sor258228pjd.10.2019.10.23.12.57.17 for (Google Transport Security); Wed, 23 Oct 2019 12:57:17 -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:90b:f10:: with SMTP id br16mr2085547pjb.111.1571860636881; Wed, 23 Oct 2019 12:57:16 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id o185sm31499280pfg.136.2019.10.23.12.57.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 12:57:16 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v4 3/7] Makefile: rockchip: Support SPL-alone mkimage Date: Thu, 24 Oct 2019 01:26:48 +0530 Message-Id: <20191023195652.7158-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191023195652.7158-1-jagan@amarulasolutions.com> References: <20191023195652.7158-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=g9UWlVYW; 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: , Add SPL-alone mkimage tooling support via Makefile for few platforms or boards used in rockchip family. With this users would get rid of explicitly creating mkimage tool for rockchip rksd or rkspi boot modes. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 40cbf68fef..b58107d6ef 100644 --- a/Makefile +++ b/Makefile @@ -886,7 +886,7 @@ ifeq ($(CONFIG_MPC85xx)$(CONFIG_OF_SEPARATE),yy) ALL-y += u-boot-with-dtb.bin endif -ifeq ($(CONFIG_ARCH_ROCKCHIP)$(CONFIG_SPL)$(CONFIG_TPL),yyy) +ifeq ($(CONFIG_ARCH_ROCKCHIP)$(CONFIG_SPL),yy) ALL-y += idbloader.img endif @@ -1342,11 +1342,19 @@ 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) 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) +idbloader.img: spl/u-boot-spl.bin FORCE + $(call if_changed,mkimage) +endif + endif ifeq ($(CONFIG_ARCH_LPC32XX)$(CONFIG_SPL),yy)