From patchwork Mon Jun 8 18:17:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1341 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3935D3F1D2 for ; Mon, 8 Jun 2020 20:17:28 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id m15sf13735626pgl.15 for ; Mon, 08 Jun 2020 11:17:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591640246; cv=pass; d=google.com; s=arc-20160816; b=Z19ig4H8Kv+BJ8UPa3rDA8betV4LmQXiDeHPpba7iULVAq3KtM4hrIRznH9L5XY0ix zOdbwuTpK878BqiDNKctd/K1wi9Wv0/6KmsxPP1VsYeVwJjmQ8S9hGNA/0k2JGtJBezb HYPqifluHBXyM24I5uwUx5/rE/cXbA35gnQB46FRCvJBIU2g1GtGlE6y3FllgfQJncJA E4Ph48B0tXGXZD+JxsE27rzUB9p8tWHKLk962groJORoTW+DHEfG+os/m5wlzc/tgjUj sr2XYN2JSGMShHbgPCmRQSdXcAGhn1vbeSluhrOJ2OEOOUe2JzH0J4u3eU1B0ADwL9iY t8Cw== 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=yqmgj9cPusG2u6k2RP/Te098Uu0CzNwTbvg0EYIVrhU=; b=Xq0wjf9p8cN/W0TeX02UFpUb4fyrWAGlzGNyWinKuBcJRj62rXvdxdjw9/CRx1AmL0 g5cKuyCZiHBDskVFusPDUKYQFL/dzy3NUbGIkoLMoVFqv889TCJE/5uO8jXpqyMtyyKR nZtm9Lr3xRTYUtn40+zANgj1cUQRPUsVeQgdHlGGTaEN0ia9y7WU0TjhkWCDRLeLdXvA kU864nvqKFU05HcYZgjxcvMrqx1wmOe3A8/p9eChFoQUQMySb5BsDZCAJ0RUfMlC4TQF NyqWETMtOG7WMaFp2dVzEO60HPv7BtZHi5uTjtvn6Q3/qcHpsaRPc5AkHysR/y2goId1 Z3SA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Yo6Ldylo; 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=yqmgj9cPusG2u6k2RP/Te098Uu0CzNwTbvg0EYIVrhU=; b=S+a/v960ILlIlyxRsY5xPRxVEelPJObwaEBdXcTlD/8rT9VBdiAu3d0VHyuCg3UkFZ cRhF2RN7sohm5ldGUO1/Qhq7A9TWwOCD98nmpgJXOJu6++SdsaZ+HR9V28UnKrseNzst E8iKelG4xo9MTycFTUmrQhRs6TeZpJFyNcWKg= 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=yqmgj9cPusG2u6k2RP/Te098Uu0CzNwTbvg0EYIVrhU=; b=J9fStRviFVbIPHaQ7ZouV5XOJ4zQYr6h9PNYCZCyjMVd1pRTWyRL8HNJNzetAxctP1 mjZf3omDHQ8kyaaxKLsIxb5scVOPmbNbro/7OgjilTPCCAilULN+zP+1Rk4OG0lPEhk2 9lnb0UPobdjuWiRLB9dg1JEbB27Ofq0kCIOK6XwXa6lm5E8WFtvxnf6EPJcZlW4pDIFW 2z7TuPK4I5rXTe7XocKNdb6A5nah4At5LU9B+M8IH3jolSeQazTHpOr0CDeeiurcgbiA cm0s1DhrV6EEPsRn/Q4qDA5ZvE3ntsLuucR2Iz4QebjXm/f12d4R3hKJmeY0/oOw8hKX ZZDA== X-Gm-Message-State: AOAM530uKrKV2nzYawppIvuiap/jHl0UC+VyJUMNvvoaLFhQTBr9UQ7o r3ECZcUViw+5eao1goKXXdTT06BX X-Google-Smtp-Source: ABdhPJyHNbf30mt7tF1PyR026uZe+WRX8zUAoA0I0jKe4VVxD8YXydxQkc/xM+uyV3pZVYeuFw9xWA== X-Received: by 2002:a62:1d58:: with SMTP id d85mr14142388pfd.156.1591640246171; Mon, 08 Jun 2020 11:17:26 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:7143:: with SMTP id g3ls135849pjs.1.gmail; Mon, 08 Jun 2020 11:17:25 -0700 (PDT) X-Received: by 2002:a17:902:6bc8:: with SMTP id m8mr88290plt.138.1591640245700; Mon, 08 Jun 2020 11:17:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591640245; cv=none; d=google.com; s=arc-20160816; b=grVFn2gwCOf7Nk/jyZjBHtOhWGpbDa0It5cGsCEiGGP/LtOb602e1chL22MJ9JwLeW ioeJESndBARp9/Z4QHRtPbi1zvyWlWIR7qUj57+uqfEd04s3oNSx/9zEzz9saM6XoEJo 6V1P7CkUP/8bdznuvK1OPYvjLmlkNJXWXKHOxT3miB+W8PSdAowytlDEp98ch9d3R+ii Wl3L8XsA4ylegpieNL5vUBKYP3/XEM+gnu3cVoE5QU+WRz34Pw9Wq7B6kyyozMYky/eX Chh/FjrOTKFXSkWThXt+WYY64FcDnB0VLUkqfOSwYjJMhmQNulQBDcXx3hy4dsr/b/GD qlQQ== 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=rqXEXm0tb4ZEKQl4MRX0HDHcSNYC6CGgq8tXMrLZibo=; b=zyZpIGEhBfZUH1VupL9AbrmkN/jvBqZXnvm5T+tBmy7tt5JvmslS0QKLuyig3ZztlS etrO+rVJleaEh/BVGfNA6jyq1U2cdIxzEgePqhH4EL0IbrlQv94zktU3hYHgwH3SQ/4/ fBD2j6m0X9tkktIIwIItSRwTYkB+xNqOkJHdytRcYC+ZT/zZli1lBYlnPCUSVxNJWiHJ dAuSwbdCrrd4GZFA1JiWoNOjK1HAHD9PSJpQ/OdeyKfon/nd2qnfCx8ELZurYBJDTstH PvyF0ICLKjqUThaP7in9B/+VmqiV9F+W/TXM8j7ErZFd88OKLMHHEThtz55p/HrvEXTk 8oJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Yo6Ldylo; 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 q13sor10790061pgn.2.2020.06.08.11.17.25 for (Google Transport Security); Mon, 08 Jun 2020 11:17:25 -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:a63:c501:: with SMTP id f1mr9536927pgd.324.1591640245008; Mon, 08 Jun 2020 11:17:25 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:9043:af95:b7b4:3ade]) by smtp.gmail.com with ESMTPSA id t7sm180213pju.42.2020.06.08.11.17.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jun 2020 11:17:24 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass Cc: Suniel Mahesh , U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki Subject: [PATCH v4 1/4] Makefile: Drop to handle rkspi image type Date: Mon, 8 Jun 2020 14:17:05 -0400 Message-Id: <20200608181708.17842-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200608181708.17842-1-jagan@amarulasolutions.com> References: <20200608181708.17842-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=Yo6Ldylo; 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: , On rockchip platforms, SPI boot image creation is not straightforward like MMC boot image creation where former requires to specify tpl, spl in multimage format in mkimage, and later simply do a concatenate mkimaged-tpl with spl. On this note, let drop rkspi image type creation via kbuild and let inform via rockchip.rst Reviewed-by: Kever Yang Signed-off-by: Jagan Teki --- Changes for v4: - none Makefile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 3851dd9fa0..db3b6b9991 100644 --- a/Makefile +++ b/Makefile @@ -1438,22 +1438,15 @@ u-boot-with-spl.bin: $(SPL_IMAGE) $(SPL_PAYLOAD) FORCE ifeq ($(CONFIG_ARCH_ROCKCHIP),y) -# rockchip image type -ifeq ($(CONFIG_SPL_SPI_LOAD),y) -ROCKCHIP_IMG_TYPE := rkspi -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) +MKIMAGEFLAGS_u-boot-tpl-rockchip.bin = -n $(CONFIG_SYS_SOC) -T rksd 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) +MKIMAGEFLAGS_idbloader.img = -n $(CONFIG_SYS_SOC) -T rksd idbloader.img: spl/u-boot-spl.bin FORCE $(call if_changed,mkimage) endif