From patchwork Thu Jan 9 18:46:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1027 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 9C4E03F042 for ; Thu, 9 Jan 2020 19:47:46 +0100 (CET) Received: by mail-pj1-f71.google.com with SMTP id m61sf2174700pjb.1 for ; Thu, 09 Jan 2020 10:47:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578595665; cv=pass; d=google.com; s=arc-20160816; b=giT6BeZFfn/QldEr+Fn1ufnBtYNgkHMXWuJGgYBu7JqpuGMGPbtOq8kjaQMLgiBvi7 h/6lwi3Cis1Rd2dxsa8YWt8ujXenwUj205l3MDMMJjEY1X4mmb8uglFdCX0zh6x/nP2w nlrKq4Oa4GCBCTzHKUQXST3TBwDh8qOEK4By9wA5pWHDKhncPm9QTLey1aToxRBvsiH1 1U+3SRXESUV5doa2VwWm0lhFW1DNDP2znGp3S0GvuuR7Xv1JaM1RTGbvUQUT2aLlqse9 ZzHxhk/e+qDYW5tgA6QByFiKr6Aq4MQwxe+62o10HkOYM3qZ4G/fUmGo3eXHaE00KLFc X34g== 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=6OGX6elhi+Ln06E2C8Aq5Nf1UCFU2WiRPpuI+eqQXcE=; b=ph7yDWStF7vobbDxLnFheHl8VV/sJ8ztKOdEYXepwpsvlvrYSLP3hEygR1BlqCNv06 zM+XsqBjgVnQhDGPwVeKnodbv2euogkrxAdH604OOQxtU5dxvv/5MdPgBD/zrG7VI3Fe aJNwTQ6Xfbmlhqv55K3VrziNh/9jVoiYWi5CUp4My/HiM1vR0OoqmCDiknMHM9HXZvdj fjiqtzyw+Xhfq4OQx27dy+pl6vu+X7SuZmhLOZFbBcMqXXGROZoMn9guGrfBJgseDGaY npnlwl+xQJpE61qodoJpzRgSFXxWx1Nusmgv/+u+t2g+NaxPM4/193F4h8PPOonq7JNt TM1Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pEbJHhTS; 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=6OGX6elhi+Ln06E2C8Aq5Nf1UCFU2WiRPpuI+eqQXcE=; b=L1XhTTs8z6uAPb1GclI+fRr22m9A6QPUj6hl/5zVdG9Iz3RODzXLWQF/VtnOHERLHB ZJilr6qjJTbVUswyML4uXJ83OB88AYFvFCtKXbetFittTELVwreS7msiTGKPm3qkB6i9 a5Isb6hG1JXQ0APM9sj9ZgnRLW6m+yAlFTd1M= 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=6OGX6elhi+Ln06E2C8Aq5Nf1UCFU2WiRPpuI+eqQXcE=; b=MFN5vKQsIVb/PUwC3YJFqrE4xQwN6uCoDPfEs4QyHcM5a5FGeT2Ul3xSmPw+Z90lX/ 6xonJmMrPk7wSGR2xU5jQ94Krjz+SAIb74BoCFT1yakGhwaibzZJ8c609DMwg2oNLdw9 C6CVeR1Nq4VFfI1e9+H38Ii6IyI2rawKLDPyXQ7pvPRPTtIiVHgC/RM4eh0x3EbIMGjS 6gWH/AuVEWb8VPlvXGH9qnMODwsEh3uwHVywF+akkQZMfQHYvSQkcOs+SXsp2xaVsLVC M3AYB2PiOWcgq0qTr1AlFH6UGNJbrdipQ4A2fCikCayZNlOFR8M26DRoao8DQMFvfo8e lD6Q== X-Gm-Message-State: APjAAAWLbu+Cx5xUdiMNQ27vR0n3M0i4WT4p1MpZHiWS7ooxljOZVF6H 6mHbpEvIgCgetPky1c3AaCdjapi5 X-Google-Smtp-Source: APXvYqyEBNUuuhVhx0NeTi3fP1CRmZ/2EEQh48rW6Mz8EGQfN6XegYmDWRJhBmMHLxiwd7QCIgOUPA== X-Received: by 2002:a17:90a:e2d4:: with SMTP id fr20mr7253613pjb.85.1578595664798; Thu, 09 Jan 2020 10:47:44 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:22e3:: with SMTP id s90ls969698pjc.0.canary-gmail; Thu, 09 Jan 2020 10:47:44 -0800 (PST) X-Received: by 2002:a17:902:32b:: with SMTP id 40mr13073786pld.22.1578595664262; Thu, 09 Jan 2020 10:47:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578595664; cv=none; d=google.com; s=arc-20160816; b=gif9Cqwc0fqnMiHPO2MzojM2EQVeoXQkua/gJQXFejVez9DojCotMCXoL4SDXLOQ9p zfHtRP9E0KkJjuXmpfhaCb4FOVV+I5xeb6uyCJ+KngpVkeAbszYlcDEYNI0YXG96Bs6w fGbpYWxarb3jBbBdp6Bop9tcIeCJmqdyunWZqZYmAiMPEeTohBTYvv/T4wuG83szqI8J tvwKmrOCLR1dRCfX4LJFL5+71ERQ08f+u73+XVvItynedbcFaa38tgazZRJrM/Fe5kLo 6ZGf+CPBYuGA2yF1OA1p/Y8SQ8FVt3vSHtLci0SRO2F0syBzteq2Hcb8BMInuyRn7VLU JTeg== 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=d+jIcib05LKVddxJcU9EnThFBXIIwGZfMc8WfDOiGuA=; b=0P0cuh9nDsQSp5OphRizhXjMekH0GCGFfDyI18L2TAczzW+gNxJ19z8KhllpwQTP1J WdEINf9ZOauW6d7O2a8x29U6F4HM3VTuUYwEtO9fr7AoOyoEnn7SqRfKy1tigQphym7o 2CW8Ul8UbOwOHLESt2l+E7z/SEEajm7DGNJ3/hjli1RRG//SA81C0Xi80BudQkM5dqdm q+eVTLWX8SM9TKWSpJQsrypXMylhTldgDGwJtGB89D8YW2GgyYWCoC76CjJNd1vXjrAt SrdOXpjA+tKxLt/00gqUF/YsMBmIPPtebBN//2pf6RgjsAtAppwDVXS3VcKqHn0F+Cn6 nobw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pEbJHhTS; 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 v17sor8376475plo.19.2020.01.09.10.47.44 for (Google Transport Security); Thu, 09 Jan 2020 10:47:44 -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:788d:: with SMTP id q13mr12929692pll.210.1578595663950; Thu, 09 Jan 2020 10:47:43 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 10:47:43 -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 v7 1/7] Makefile: Add rockchip image type Date: Fri, 10 Jan 2020 00:16:16 +0530 Message-Id: <20200109184622.3098-2-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=pEbJHhTS; 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: 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..e264b2a49a 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_SPL_SPI_LOAD),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