From patchwork Mon Dec 30 08:28:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 967 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 54B083F076 for ; Mon, 30 Dec 2019 09:28:39 +0100 (CET) Received: by mail-pf1-f200.google.com with SMTP id p126sf18465142pfb.9 for ; Mon, 30 Dec 2019 00:28:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1577694518; cv=pass; d=google.com; s=arc-20160816; b=JRdwQCgNVk53CknLo6+LdISbCMBm+2tVzRWXGwxOICb9wUnUvdcy1h2LCqOaKrjLPS xDj1hiF2hpDF2NPa1gCZxUMUpJoymrqXCvgG2sc0O9ldEo9OMXVZY6WYauTqQwRKlT1B l/1ohrUR/uxSuipOJLOaY4wSuK+xJynr7VCAS/AcfXaZjPndyOs+NsldD8qdwe9IrJop FNk56FC+MF78LSgcDm0M1b1NajBTuBdNHAnfuKQAu7gLmvzUBj60rMhHaSa4v52fwDKv S5UOj/vElx8sGDmTqgtSuAl0wOD8h6VxteZPjl+itudAVAo8b8dTELa+4k9jjf4nh1un YQOg== 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=fboZPpyeSckHukf6E8iZq/ccZEILpWoAt4BR+OpAyKY=; b=tiqwN7fKPgGGhiRYA5zHVucN6Dx92c47gzcm0T1hobY2P3K9yPrFoj2qTbwkh+3PJZ A7ujj/M6gQ66qAjWpJu/QTdJwlyqbSRqe8qEcKOGIoKju6JbZDAnaNVZX24dJSsnI+Qp XAwwXRrcO5jxuqmhGANtRlkgjN/0FXR49dHhw1cIj/gvd7niI4Uk5YGIJEqqi1Qgl/A2 NjKGGyPK62n4YG9JvYTGP0t74+Xkd9Awdq7ETORPOIh6o2eSzD/c9yTu608oW7yYoVlH Ksz/Dq61IvPrzyLs+IH0iaKgSAtTCFJaw9NxbBp/Ultzd2rATKPDbagC1geIT0xviyn2 zipw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=izcUzUke; 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=fboZPpyeSckHukf6E8iZq/ccZEILpWoAt4BR+OpAyKY=; b=K/TjfDsrYObRp9WquQu+mcHdtmc76Ffx1Tb4NHok2/Iv5ZNVy1N4SLUW7VUn49oki8 RxTY/8O+D4U1wvm5J/7+Fmy6mHRAM7aBN8JuaXihqvaFb4cIKGQCk9G+zwjq1cT/L5D0 rcR4Cnz6tRRFwDjpDzX3GAFxBzMz+pTgppQ1s= 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=fboZPpyeSckHukf6E8iZq/ccZEILpWoAt4BR+OpAyKY=; b=lbieuKfwDVYvmsx3JPMdtSo4Zk15oi0t7BoFUuGi08MEtAqCkeNnBus34bHT6N4Edn JoSMtoHNX1ApZJ0KUfI7RRJyRmwgelH4X9NdtDKpqlo0qMAJOuHaSUnYgV36LgdU9wC7 VckwkB2BjVc3X8TaY7+jLR7rk8eeK/A9NZbBiSMN1J1A37d353FoFIGyeaXJwLTi+zWo vmioBypiRjsf2eu4CKImSSgLhYDtJv74tPGwgUJUKAfbjLEYMB4g/zKdEUUEF7ZupIQo 0AktS35m7G2gkAKcKyExO5ZZYH2yVSZ/b5GFLR55GOrvbuV7p+LYxPNOnwfLe5k0W17B yB1Q== X-Gm-Message-State: APjAAAX1ikJrGcuPorjK+snFc4tvARa0qLFC3JP2+u7Y32URt7n3gcgX gXPojFZyOZ88oHVSUpUZVZfQzxgj X-Google-Smtp-Source: APXvYqw4yfO/VDoX0O/tMZYGp3h21qc3cqFsMoRPrElYxIEV+JwsjZo5eVK9BWamca7MvEH36OI3Yg== X-Received: by 2002:a63:504f:: with SMTP id q15mr69625509pgl.8.1577694518044; Mon, 30 Dec 2019 00:28:38 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:8303:: with SMTP id bd3ls9145156plb.3.gmail; Mon, 30 Dec 2019 00:28:37 -0800 (PST) X-Received: by 2002:a17:902:ac88:: with SMTP id h8mr66519389plr.131.1577694517519; Mon, 30 Dec 2019 00:28:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577694517; cv=none; d=google.com; s=arc-20160816; b=FtZvwyIgVZ3paCOc+ffKh32wYYtrBdLyxlk+7tMdw5kZb7z2GtYmyGd3K4gi+SfxbW UI9bnb9JMahhoJq4OhBR1FqIysywcXmJBZsYAeGtQ661UYn/9v/TUWEUcUkwgstoeA47 9lQTrNWvyXwJ+3jjUqGFUxMi4FI4YRx3MEkZwncM0G9tWQpCEAFZpaWGrtqK75SUhY6y IUu7yA37o+tvDYFx8Ggaldw7p2C+PMhr3pMgd6Jlgmr2R4dZT1n5qIjxdFnOcflzS3I8 ZJMLBuP6YAlIshj25RN/9+P2ABjwS5XLM2HRrS5Cb1zbgUmj1/vOO23N82XNZ9sO+Yer 4jHg== 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=fCEJAVTeFVKCDScEQscaeQ9cpdN3+DTMCdxgai1STTg=; b=NZ7NY/Pqj5481VWu483o8/ulolAlm4OJwPT9gIJ7rzH7VYeHvBYoJGc/N3XaOeZSiw xLz8Pu009UNE1tCpb0CQm8lY336uhG1tLS9e9OVJFB2hLZMpMiajRHFes3woASBTLrFQ +o5vY2rRucBaShG7woFwwCuiYaIHCyfcFtLtsyyO+Ptoy1T05DtgyCrW/uyRGAHcIhR2 W46gQPqwxFnRBH/9UDWv/uTzr+21gI7omLXsGvFlRM1LlbJAp+pKxWrD1LvED9arJxBM G4Nr1/w+82rxE1g+zIw91dNyfSqqShZRQEi5rgBYU0f+7OKidP5OAseuYWups2N95KIw xE8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=izcUzUke; 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 r6sor44620115plo.34.2019.12.30.00.28.37 for (Google Transport Security); Mon, 30 Dec 2019 00:28:37 -0800 (PST) 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:d985:: with SMTP id d5mr46209111pjv.73.1577694517271; Mon, 30 Dec 2019 00:28:37 -0800 (PST) Received: from localhost.localdomain ([49.206.202.131]) by smtp.gmail.com with ESMTPSA id s1sm46240652pgv.87.2019.12.30.00.28.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Dec 2019 00:28:36 -0800 (PST) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Akash Gajjar , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v5 3/7] Makefile: rockchip: Support SPL-alone mkimage Date: Mon, 30 Dec 2019 13:58:15 +0530 Message-Id: <20191230082819.30191-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191230082819.30191-1-jagan@amarulasolutions.com> References: <20191230082819.30191-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=izcUzUke; 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 e519103be4..d8a0f68883 100644 --- a/Makefile +++ b/Makefile @@ -908,7 +908,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 @@ -1382,11 +1382,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)