From patchwork Mon Dec 30 08:28:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 965 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 0160E3F076 for ; Mon, 30 Dec 2019 09:28:34 +0100 (CET) Received: by mail-pg1-f198.google.com with SMTP id i8sf22520694pgs.3 for ; Mon, 30 Dec 2019 00:28:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1577694512; cv=pass; d=google.com; s=arc-20160816; b=fzVvpx70lArZLXXcI/z1vvHwF7fDS0U2UvNriIxG8c8C7YUwicPJju4PkqDNk0sAgb fyfiOAvTfo6YU0fywHhQZRMce6gWnuDBuc8uEAzBCh4YGRyJm73js10tcS7I4LzzqVje 8zd30CVdybW9L6t8V4dMeD1lk4DPAeWftmVTamx1DsD+U26lGs8uMaKjb0/e2cRKIkD7 +ONIr3sAHu2MYSONtH/VKDxTZPNWTefn8ojzH4a0Y1OT0tAa2vz8SAPmGL4OVPVeMAjk 0cHM6U6DUHKc7x8s5ECKOAp/2+wsESIA5xzlEfVJxQXv8ERw65GTDnxwPD8NhNCdjHnE KWQg== 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=gHSMM9ySOxycVUcsEVNEJQeMZZRMZnOmBmLuBfQCeplqYCQyFV8xc2RYk0USD0uqRp cWCNGrE9T1Si//eYBq4ybVkwP/wUaCzSCZ4zLgwn+0jNCmeJ33wiAAkT4+sTjJLeyZKn ulrmlD9JIviLGJpmLXKGHNj/4jSsuRvtnc06Kx6LmmXc9F1v9B2iFvYBqNG886kF4TCI ircW/Ols+LfaHeBOqcO77eJgHuVAABLqxmIWdGScmWHRsfBY1+qyyD6ZHGQktsehMx+A ZeSAdN348gX+7V7nT+pUVHJAc+3eE7NUchw2jJIL4NRty/O66wXSzAs4nPVHx4vBsHFX a7gA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pZVHLKmh; 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=mQIe3clU8v2l7oIhMGUconGdSPgg8utk/r+ndFaUDxH1KzDhzTI5G3/mbmhhtABTeN NWA5wQZFtLqOI6eoD9jIl5tCJR53LlxpmVUzV9lc2UHXifvzJZUcDswyx25phxlVJBAu Qw15SNb82hMBuaJPJsqK0B9H3P6bNSR2HKHu0= 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=W5RTUIFJV2UYwV90qODFtR9I9BNWEJ0pTSN3DSbuo/RkJ0ZdVXdxtjmLBYfjfXvVTW LboiXoSAs5ftcsUruP3AHLT/8QrzRDa9o3OVm008zgJqOl4gBQpwSW1fFxDE12B3c6hA dqYAPMt7DDsZBhSIgRF/LYi88Y1i36Av0DnZmjBXcFKBfCDBvNMNVfhjyxvxtChBWdCE +ey8uSEbuvVvh6yOeyFqSSZPRFI0a0A6yLLpAk8aLIHTbYfTYu+il6J0xtTdRKy/Qn2U YGhdLQr9ZpyjwJyd+hQj7p5UUPBrnFuDtkJ6Av5J3mjBV13AzxG51um6LFJe9BeG4Rws d6mw== X-Gm-Message-State: APjAAAW5ix1I0aeOj47N2UICzfDvNz/EE4AMEKN76W7BLjB8HlyLP8qp C4ZX2sc0Bz2XJwQyHYmNrMyWUDaR X-Google-Smtp-Source: APXvYqw6kZR8/jdLTLY6qUqNiERzJy8AF49niSu8eFTJSvttQMkG+SEIfPtoF0DE4fsSDHKC0Xqkwg== X-Received: by 2002:a17:902:59c9:: with SMTP id d9mr66066184plj.184.1577694512288; Mon, 30 Dec 2019 00:28:32 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:ac97:: with SMTP id h23ls9139545plr.14.gmail; Mon, 30 Dec 2019 00:28:32 -0800 (PST) X-Received: by 2002:a17:902:9a8d:: with SMTP id w13mr46581228plp.40.1577694511768; Mon, 30 Dec 2019 00:28:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577694511; cv=none; d=google.com; s=arc-20160816; b=fTc2qFE2ef9lGMzpu0cTOX2OFGaSvW53bzOUpFQrdsASDXUIwlPQMlzOxuCHbxS7LL CEt/miVjamojc6xDEbdtWXBArDk5bvwS0BsoEngmarfvsX38j4LiNSptI7Ilu08tQbbk 1ojUi6LWys1Vnm/fpFwj0y+iSR+sMTo/7A0vtrIj6YtHbdKG4DpR3NhdjVwk96IYMBsf T8l8sLOl2jBAChM7MC67n5q7GPcRIsdSvDXmnv7oaDzJ/SdJQ8uwPNyMUwUgfCZHS25x 1OLz+hsLA34E1mme8a0z9X6OMfg7+XuKKrpqjXPyIHGrnQZdWBgbIpQ5omxHCGOLCYPy kQxg== 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=zpyWcK87ayx1778GJ//KarpyrAFE9cUHlvuNwIJizVjhMke0xuJA+C4gkacbU5d677 ImoW7eg1XtO7AvKuCtpEbKRfQOYsVzNF78mmDV1lfb4L5ZgJ+gbuzIoldAfMBW6WM2Tw 8nZUJT69X4JQ9hC57hyKoKSSn6DNKQxnhDBfYCOwReNvIX2Rmmu0vDX1B9hwl5PwoErg gGWkXVqHWOwGmJmFuJQ2ATzBPyCJMoPVap02TZ8s2fvyTxYWfo7DA82Iw8JCqV8TyMQK X8ERlFGxZww1UNS6tsMGEjLUfiWU0dbytUcUADxP8Pg7gCRsoFAXi+u0PTpgOwhYcAzm ppYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pZVHLKmh; 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 e5sor22896604pjg.10.2019.12.30.00.28.31 for (Google Transport Security); Mon, 30 Dec 2019 00:28:31 -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:3763:: with SMTP id u90mr45074959pjb.107.1577694511520; Mon, 30 Dec 2019 00:28:31 -0800 (PST) Received: from localhost.localdomain ([49.206.202.131]) by smtp.gmail.com with ESMTPSA id s1sm46240652pgv.87.2019.12.30.00.28.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Dec 2019 00:28:30 -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 v5 1/7] Makefile: Add rockchip image type Date: Mon, 30 Dec 2019 13:58:13 +0530 Message-Id: <20191230082819.30191-2-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=pZVHLKmh; 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