From patchwork Thu Jan 9 18:46:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1029 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 5E3783F042 for ; Thu, 9 Jan 2020 19:48:09 +0100 (CET) Received: by mail-pf1-f197.google.com with SMTP id i20sf4495060pfo.9 for ; Thu, 09 Jan 2020 10:48:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578595688; cv=pass; d=google.com; s=arc-20160816; b=wrEeSKvl9+5SHN2XMHMmYuShrSSM5N7q+5mMauxqJPv84doorehEG3wRjxnOhEEBGc LR723o5ouAg3JfHZPNXYqsqvkbfNQlGe/t9bQYc08yH6/P8yLB9tcv+BabCvNnDduuld RyihUxAkfsGRMU+nwNCOzIIXe+4ueTdTxcZzVp5E3Gb8jOahJzA++6Risk5hcTnFl6+z csdIfnxQW0gMxSfMssjh/ZW2hHjLKs1T5zJYsASBSwp0sVp6KnLi96MJKNJl+Hx+M2h7 Q0ykPe2RM4AeOc8PPKhPiMX4rIa+HlTuOI9OcAFUMtMaLD2sNRqCeHDetGxSwfKEymOE MFDQ== 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=4rM+1MPmTKe+cx8tyrGjadScBnigm3zFQpp/4gILHzI=; b=bK79rB1OzXnbR7t0VY4ICOoAf0geUYTiZObsRZLZaHeh87xz4a8mcm7M/TSJHNhISr cjM3NDBECFwbL4DqgKp3fZ+IhudoW8jOG3u32mJu3if8UgABDhq3R+CDiqnFXv+ivDKt G6VYpLIaRdC0KqjpZUc77MuO2KyuOCPWiUy9rBLNN20Xb/GpnHt2iIk/Iq5+VkDqgA5N JRr+zelTEJmeaByTC6boHPZq1q3olShVQ6/3eONhWoVKL7XfEnan6/uHmOvRpiw7YZ6Q HKFMPWG/0DdazT95reB2OKZ4WrbDtdySlg469bXp6v8zS/97JkA0z6IHvwT0rJaTIGv8 aNiQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oP0uRYPA; 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=4rM+1MPmTKe+cx8tyrGjadScBnigm3zFQpp/4gILHzI=; b=ko61C+4EPXNzzWLk5B+YIWVIxM2c5YmhQoiRQHFNMAxhZoFxIf85u+z7iv4HVML2bz Fl6YWChOM1Ev22NqNxUmQBreABRGlbeMgxaX9MXNnebtrOv7Y162iohoZdtwQ1RTzqRn Zv5vZSWToZBYXSjQFGlwkFc409KCz0c7/ia5s= 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=4rM+1MPmTKe+cx8tyrGjadScBnigm3zFQpp/4gILHzI=; b=lm+XKYd+n+N+5spy3lVEb9/S/6AdLgEyi8xhNtQh+0r32/ySDwcBqxAn4taPPQ4RFE bA2ER1pYn5iiu19e5+IznNvxRtvRCq1qxPQEtKT++FMciE1iAXGdEJ2poRMcKrDoatRx gRLx8Vrkj2NLgJY+TMyoneCzmwPTgM8zXnLGVB15nBwShzdF1lFsSyu/6FkOAGL8Lx4F kA+wMBOTMJFaDll7oVmRrO6ucr6vXLtcv1FmwaM3U0kTHlh58qWhqFy2JWtflGszNmuz DfDlvcn0iBAi5jo/9ChNyQEJi78pJ8dWur/ZSbRW967qjEj22ZEJEcT5Jojs7y5xJ0Xq XR+w== X-Gm-Message-State: APjAAAU6GmKTO0uioxqGEtbGZHWIb95mpaeEZPpOTcKIf5HTzIXE5pAA Uy2CM3sLwv0GF6W+BcfaK7eYggU2 X-Google-Smtp-Source: APXvYqzTk0d2v2SEVPseS1ZSrpCWY94df/SITI/bbSeA9MyNTC4LuYHOAWa/3OqlH34BS9tqjHZueQ== X-Received: by 2002:a63:d017:: with SMTP id z23mr12970212pgf.110.1578595688087; Thu, 09 Jan 2020 10:48:08 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:d007:: with SMTP id z7ls791776pgf.9.gmail; Thu, 09 Jan 2020 10:48:07 -0800 (PST) X-Received: by 2002:a63:1204:: with SMTP id h4mr12649798pgl.288.1578595687443; Thu, 09 Jan 2020 10:48:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578595687; cv=none; d=google.com; s=arc-20160816; b=D87/PHglIKKV6AO+pGUIW1yA3UKqHbgAEZW78jAZ+8Geac6QBnvnUDidAQmX199hxv zCCOt7/9VYEvRQCAbn/dyGNb+YoPyLVjVFGyvYlBjykOQP4vR67UtwLSVWmSRQVEm1KB 3kDA7qNpxyj1DkI5J42mHXU6q+KPwSw9P7vZ7FgS3Hmoa4zb8GapoWOKgi5Kg10iR7j0 W859qG/V8jcClZXGPTLd4Rkca+MkXR+ZOT3OC9Q8fUozXHf5+r5q+n32Zc3egVRvqegO Kx9WLqS+LDx5vG9Xq8+M9700GnS1R37nRA6cb1ASGVDgDBkMGz9uHHdK9gvyekXQYqM8 NLlQ== 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=ZU8kvWg4m+hftYZcxYVQAS3W4JM96ciVS2kwizCqq9M=; b=NJMbVISgJXEeAVL42nmC+Q72Soggo6rFkq7DB3KiGwo/rmWWK4dozwuUpXuC3A2LSa H5cZ7gsn8nuXRLmZ9kaooE+KSGzuR7vbXL91jwHCj6LnKd0qGLd3vahht+Dv7oPEa8rM X8TErtJzAPA5mihtMVGm2nKsH3ixO0QZ6fXvMHDSG011chkQ7nEEsgp7yQW/1pysvjlb xZnMwI75yNVnsE+8t6UqMSzkFlZAQL3RCBgZv9V79b/SDbpKx2Y/JHzO0QoQsifzSuou z0u1moHmJlebF4b2wtdy4YFppMLbywL82PbR89WBRkRMd1Uwvmho5Bl3nQAzlWjTZXLn IFgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oP0uRYPA; 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 b6sor8523859pgh.15.2020.01.09.10.48.07 for (Google Transport Security); Thu, 09 Jan 2020 10:48:07 -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:a65:6898:: with SMTP id e24mr13386669pgt.59.1578595687111; Thu, 09 Jan 2020 10:48:07 -0800 (PST) Received: from localhost.localdomain ([2405:201:c809:c7d5:c4eb:be5d:1485:edee]) by smtp.gmail.com with ESMTPSA id i8sm8967306pfa.109.2020.01.09.10.47.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 10:48:06 -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 v7 3/7] Makefile: rockchip: Support SPL-alone mkimage Date: Fri, 10 Jan 2020 00:16:18 +0530 Message-Id: <20200109184622.3098-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200109184622.3098-1-jagan@amarulasolutions.com> References: <20200109184622.3098-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=oP0uRYPA; 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 50ac12fe9b..5361524f77 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)