From patchwork Wed Oct 23 19:56:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 873 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C79CB3F08B for ; Wed, 23 Oct 2019 21:57:12 +0200 (CEST) Received: by mail-pl1-f198.google.com with SMTP id f10sf13420142plr.7 for ; Wed, 23 Oct 2019 12:57:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571860631; cv=pass; d=google.com; s=arc-20160816; b=BhM5wjGSNXQMPIQEFjrBxT8fySsbX4Bj7HM5P8lWzCPz4PQF9nEL2OBEWSSiPCNVxo WenrL/Qem7jtJT6w8TZb0RbWR2LquRo5mPIOrwXjS1zPbpwovMo0An9cRmp5Xb5CNoxR 6JQFcHKPbvHY5GTxQVgslFKWH/iDYDcINuO0zWrI24vHdNYP/FB9a20eIRucmOzGJWaQ r3m6l2KrqpmYVHDXTIdrSv1pOfEOKNc0KfG0OjnAnZEFUawMGuMh2OXLkTjv6DkbaS2E bDcueWBzDmGQf+7iYphksYLdc0CVUKrHmp7wbgXF00d6HSdJjGHLvKguwBLQn0GhE8CD XRxA== 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=IBzRAlV3xkyHZf/TXtIz64prdAd3y3+SRsbK3uQnsaE=; b=b6stEgaK/7dzOPBqBOnEkvdRKBpCWooHWQ3jLROC6V74gwmnjTLN6zKbYPQTSoQEUo OhiXu2E++emH0KoYvy4yqMn84SIpTeoROJxSXL+m6G0R4+k3lFSTm447Q1Mwvs7/sfKF rQ5LNuX3YMkTFRqA8urYLrt7SVAcq2lta9wcJfAHRdADhltV69M8aTrSXUMkuIQpg9rY ZvQcWAQ67o2atgSWBwpmnWM+45ZkT2Mwe4v4a9NVdjhp74zrQtbMkvKfFrNhkAmQZZN4 vh8tgi+3FQrhhVNeK+9EZ1QvzqpVnTnBDiLDNhhR8Hh3k10oGHaFCCUiC4naYQGTJIAI EiDw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LrjZwwsl; 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=IBzRAlV3xkyHZf/TXtIz64prdAd3y3+SRsbK3uQnsaE=; b=nFNbQOe9r5wx7KGpom+vQusxLqoNailpkaq9owvkybiS8hELC/W11QtV2lctDQxhIK WvuK0rHHlEAK7IjkQHUqhpF3aFMWSFA+y3V1W6ZfIfi9LhmUMoFBkYIPIAMydfUWl8J4 526yNeA7RG03Xi95XgL7stVpzMjCaZKEGeMpM= 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=IBzRAlV3xkyHZf/TXtIz64prdAd3y3+SRsbK3uQnsaE=; b=jazOOUWOJoR256QxQAsUWPKAdkCBVDW8yPbR+ehxDmvq+r4ps9H81bCZeRvfiL+Q8i a45BekxJi2M90LUw5pGzPDW1EcJDu7G58DpPzb0K34Qu2N0J60SmcsmweVoyPvq56Hzb q4ve3/VsHZSZiph3cyPcPw+E9sHfMnri0+0NAA+fzwKcsTUZkeEZeLq4aUtsAd5gtMlX 9e2djmLSG1KWHSU5NalGVVtIl7qPdZRaaP0Rktk95W7kEXNFSSSePlScGYvZuPS189Aq F1rBUSbp1PvIbWTkyyd/S6CKdl1vRBXXX2M0SLHewbtsmeQZLyQ4958nWfQlMPYDALVk VFGw== X-Gm-Message-State: APjAAAXP8Q5bwsDgTPhmPu22oOgs+fo5XfXOUmA6+T3nWYVwhR9d0uDH TnwO+k48E2FLppLNgy3l6Rl4OqPe X-Google-Smtp-Source: APXvYqxbGjLVlJHOwxnj4px53a6AIlI4uyvp0rEySB0KHz54ZhgGqMh4hFoU5FtODTB4aNL2x8IOiA== X-Received: by 2002:a17:902:8601:: with SMTP id f1mr11823265plo.144.1571860631146; Wed, 23 Oct 2019 12:57:11 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:7c90:: with SMTP id x138ls1069242pfc.4.gmail; Wed, 23 Oct 2019 12:57:10 -0700 (PDT) X-Received: by 2002:a63:7845:: with SMTP id t66mr11935698pgc.31.1571860630578; Wed, 23 Oct 2019 12:57:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571860630; cv=none; d=google.com; s=arc-20160816; b=ZMQkFq8hWj8RTwCEwGykXYWiUNwDU8tC7lS7fVaiuppvUXs/FKrr+AWIwdTMriL/5q 0Xwp3ZBAOTutGGxNRAXc8s1AknwRNhS9ZsHxYPdjf2nGwqQE2kDGKrctaIGdPQyR3ebm J7Yuk48gVgZjLsMDWogcRuXwI9eUylah9h99YKXVV8wLFb9eFynJotS5UB/lV5Fb18Hb HH9knLjQp7Wlip5b06ZsKOcDkramOMhpQwFLqMmu2ig7/hCnZp9sGsQ58rjAX5nq5PNs n0fRkz20pAn21jvv0MnEto0JEB/ACTmOHz9BWALLjHN70iTlvr3E+HBogXLi65LQndw9 rkTQ== 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=H2yQ4xkPkDVIKzB8uHsZTOyId3pkkwHkdUji6o4jAL4=; b=eixgs7R0QOpwWWvEYRS6Gefivj7J9ZslheQS6QJAcnfv0zEC+ckDCYh5X5XIdnsrVI PN6ps7g5tRC8WKIq7sx5qO2tXzHATltCUT3KmfrxkKJPg3OJeYZkFMowQ/ngZ1q3E5SY hao6GSgAcjI2P/n/u6PdjaiHUMo/r8+fCtrkdkrXbLp5gdcXnv+spCEeq36pIzTbctAb /9sAnbkOxTfdNjSkUqj10AJasv2wrYr1OzBSSRbkW9qnmprLEQ/5p4M01DSjqpWTgPvE PgTA1e5cnJJKzRuBpq65jGYUqYKcBVvPlkon81feeFz+dz5qr2iF3U04v6Cbv52gaScn LyWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LrjZwwsl; 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 x2sor27892690plv.19.2019.10.23.12.57.10 for (Google Transport Security); Wed, 23 Oct 2019 12:57:10 -0700 (PDT) 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:6bc9:: with SMTP id m9mr11360010plt.227.1571860630252; Wed, 23 Oct 2019 12:57:10 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id o185sm31499280pfg.136.2019.10.23.12.57.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 12:57:09 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki , "Matwey V . Kornilov" Subject: [PATCH v4 1/7] Makefile: Add rockchip image type Date: Thu, 24 Oct 2019 01:26:46 +0530 Message-Id: <20191023195652.7158-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191023195652.7158-1-jagan@amarulasolutions.com> References: <20191023195652.7158-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=LrjZwwsl; 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 6fda3268e7..3e05d3fcfe 100644 --- a/Makefile +++ b/Makefile @@ -1334,7 +1334,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