From patchwork Sat Jan 4 08:38:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1010 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 37C9B3F08F for ; Sat, 4 Jan 2020 09:38:25 +0100 (CET) Received: by mail-pg1-f198.google.com with SMTP id 4sf8260976pgn.7 for ; Sat, 04 Jan 2020 00:38:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578127103; cv=pass; d=google.com; s=arc-20160816; b=tguy0XvwSHCzSL3LorDJ29txHFzJt/MnyTb0uFtYMCJBC1N59B2Zv9nWqrLmYPsn35 EFgXDfammMm512T35Cx5uaUTJVi2POnV90whQKWne8ES/mqMNcEKPIsWEl6fEJ+XrTmx KIUr7jfmiN8aTNfxEAPslPJiIsPhruQliDtDehkO9ah83Rbo6Yde1TnAwJZ47wjLSrZM FcQSZrXqmUVM4XNDK8u5zV6Y0iVkrApWsWKrdChA7yPGbg3nRjKtQ0jQq0X5YPeTbeIq eCOLCTRGR85GMmUTDLnKG3ESeYm3lSa7YSB0komj+UHW8fFRiWyAEuaHEdLFd/aEJYTh e55A== 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=f43Lag/RiNcEXyHoRh1IMB+vskdNufSNGx27XV3qABs=; b=ZkJzh2asSHq10Ds7U9BKhyHezuRoK1EKs1qgb3mqVAHN9hOWir1nlKQ+sT0gqPFPg5 9O0F7dfcll6q6BDNuR6qCFRV/4aLEAJIWr91s0x3SxLYWviHHUAgsRjnpf6RkJ6XXm05 QMMSJlLvTl8glzYiFt+/FrXPPgMgfH7gHM6H71fF3P9Uze4CAOqz4SmZSInj6d8iLLVo C2lFSnF0vBuImHfaTuFE/KgftjFuYJIeUO3a0mmq8O7O6/2Od5rJ4GeTBCgCdXYF5wIF HxQ0MJvlmkoO7/TcAnS4kKrl+IJjkALk5X6e6XPRqTkMgzvUIBPvK+7DrZAiX/F+UNLW o9mg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gJUAqMV8; 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=f43Lag/RiNcEXyHoRh1IMB+vskdNufSNGx27XV3qABs=; b=n2raX7/4D7n1sKLtb4FfsNerIucFUnZGv+D707AyYsWgu0PsKxfVyukW5fr20Qtu7U jZZJzezSHoEoBJPd1i4goYmsA90svywDkldC1VaFNsl33eFcYrVGM0h9vzkGbbIw40dP SfxXglve9Zk11UV4s9Og8Hu7z8rvgxyeNSk9w= 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=f43Lag/RiNcEXyHoRh1IMB+vskdNufSNGx27XV3qABs=; b=d6ZuoO7qMJUJy1JEz6xEyNBxR0+BSugzRycnDjndpkx980IyvHxDAuL5yfFOoDM0nT +yHdKPoe2i+c3DmMpQIfC9PdCc6Xbchs6k/l2Ou6iyzvIEa8LJ18ZLU7Ke1Xjjbfu7FW L7iD056ULcQ2tfWIqx5yFmpcnDDWVDK1oLIje8scaVvHHIFJoUdqMC7P51Vve4cRVWkF h9FMoRz5Pf3bBypXYkZc1UqlOTQ/gG2QnxJ0DQNYjdRwUyrIH+yTzyz0tm2ktlAOiagD XXqf7cptbsGMDMVkKQQyv2Mo6YBkCwLhAwl4UHkiegYBl0CYaWvgTFubFNzHKH21rC43 H6bA== X-Gm-Message-State: APjAAAXo3DocssR+lM3Zr5XW0InadajHcwrquLkqVCHouVfKpNxLuufl d6gf5UOHoWjRLJg8HhgWqbnMQHSt X-Google-Smtp-Source: APXvYqxq7jQ+HUsKIvsEO4NDYT5qu2d3vmTbHoKHl5w1dNpaq3Xunao2IcunDiWH7x9E3xrQKnqeHw== X-Received: by 2002:a17:902:528:: with SMTP id 37mr19310963plf.322.1578127103501; Sat, 04 Jan 2020 00:38:23 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:c5c:: with SMTP id 28ls11807580pgm.12.gmail; Sat, 04 Jan 2020 00:38:23 -0800 (PST) X-Received: by 2002:a63:3196:: with SMTP id x144mr100322318pgx.319.1578127102968; Sat, 04 Jan 2020 00:38:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578127102; cv=none; d=google.com; s=arc-20160816; b=ARaszrMApJ17Men3Ujcf27iirm/P3+Ujx31EPet4fT6FDiPiC3TO1NtoJFqbvMBoIw 4lepxc5Ied4DHPpZdFwdByqkvFqd5WEolp9+7h6g2Iy8cN+fBjJUxpQIbEOmXbfDhscS xkgsxQxsRK2Usi2LLxklHPbnYhrCpJXlGGWvKC83JHzbqlzZNRDp476CcJ9T5utZuuh0 kDnGXxP0uIW9OkD5z6jtZcSe7RuueqTG4/0aXQjnQc8WJfrd9x+zgHvopP0n5l7jNg/z 2evLKGXmAWNXGdhFBy1Zcauv2D9JT7v0YP3nVaZEHMqxH8zfHpl6CtKzN8t89GBM/BkJ ai/A== 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=uFc+KeHVvPb55BWADcWbagsPR+XJZj6DCQVbpAY2/9o=; b=rLMO0KV92DySUhADcbCZz+h+rUT/vJeO69fu+cOCWp/HHO+zHKZAoMPUBJ5bMT/+Si HmoIr70fOJunomqLXANIwTXZ3zmH2tuZ5YeALOMqy24KGinTO+9EPxRPszGF0FAjQvQO 4KOpSDYqfVkIWLNK/Wc+ogTickmrEcRWqvn+DdlBjBV8/3ATt6OUGvDO7z2D1+PWBsb9 8NlYujePcQI56sU3sxpGRW2BEUxnvGBT5o6shbeuyon50E3++AXy6DYCLyflH5B3A+4L H9JE9FeO6jzYFW97d2qk8IM7aCQ3EQ2m00qfKhmxZKKTdOsZs5bGNmVMrO0gsdhHqQ7E 80EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gJUAqMV8; 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 s5sor61750387plp.29.2020.01.04.00.38.22 for (Google Transport Security); Sat, 04 Jan 2020 00:38:22 -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:902:b210:: with SMTP id t16mr45346253plr.65.1578127102639; Sat, 04 Jan 2020 00:38:22 -0800 (PST) Received: from localhost.localdomain ([49.206.201.128]) by smtp.gmail.com with ESMTPSA id z4sm70201623pfn.42.2020.01.04.00.38.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jan 2020 00:38:22 -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 , "Matwey V . Kornilov" Subject: [PATCH v6 1/6] Makefile: Add rockchip image type Date: Sat, 4 Jan 2020 14:08:01 +0530 Message-Id: <20200104083806.3930-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200104083806.3930-1-jagan@amarulasolutions.com> References: <20200104083806.3930-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=gJUAqMV8; 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 rockchip image type support. right now the image type marked with rksd, So create image type variable with required image type like rksd or rkspi. Cc: Kever Yang Cc: Matwey V. Kornilov 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 e20a206239..9998d238f3 100644 --- a/Makefile +++ b/Makefile @@ -1374,7 +1374,15 @@ u-boot-with-spl.bin: $(SPL_IMAGE) $(SPL_PAYLOAD) FORCE $(call if_changed,pad_cat) ifeq ($(CONFIG_ARCH_ROCKCHIP),y) -MKIMAGEFLAGS_u-boot-tpl.img = -n $(CONFIG_SYS_SOC) -T rksd + +# rockchip image type +ifeq ($(CONFIG_SPI_FLASH_SUPPORT),y) +ROCKCHIP_IMG_TYPE := rkspi +else +ROCKCHIP_IMG_TYPE := rksd +endif + +MKIMAGEFLAGS_u-boot-tpl.img = -n $(CONFIG_SYS_SOC) -T $(ROCKCHIP_IMG_TYPE) tpl/u-boot-tpl.img: tpl/u-boot-tpl.bin FORCE $(call if_changed,mkimage) idbloader.img: tpl/u-boot-tpl.img spl/u-boot-spl.bin FORCE