From patchwork Fri Mar 8 05:30:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 159947 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp8294015jad; Thu, 7 Mar 2019 21:31:08 -0800 (PST) X-Google-Smtp-Source: APXvYqzsldcsxMJuIS5iiCRYp7vJobS5haz0jauZC9tlTsfBiD8FqJ+NdQ//A8eQhliYYl+XJLMf X-Received: by 2002:a63:3541:: with SMTP id c62mr14834861pga.157.1552023068294; Thu, 07 Mar 2019 21:31:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552023068; cv=none; d=google.com; s=arc-20160816; b=lJ0UI3HZPDqSl9Wp63WAF5qKcOGhkgh6T/lb0l9ESeNBYMFX6q1Ic3vDj4++amMllb ecKUMez9cj8bBiyKJFxa6N4rvhi35Cljrq7N8yjZNAR2ePobloSMA8BSxhROTTUtGZhk 0Oje31SfzM8EXpLmTb+pcpgjvME9GIcKTs1Vdnmx2a134joz+npiU3C2UOmePoPxgRxb p6HsCQht98YXudu7e7PhNyqxhuxPUApiqVcq8XBD/uX/Qdml9zYuawcs/wFfWFOp4ITz kHPOBct4K4xIfUqR8zZ6tNcMEJTm2qszelSeUvMKuvxKxZU64JFSCAQ0vOEk/gbIAPK7 nF/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=oU7ETBxuT4v8f1zR1m07flzixJJImsBFfOVhlFXCla8=; b=H+Lbr0SznxMEtg54IZo5BvmoURcfPlrsl0f3CABP62eFnV6FI8fvIakGOdu9UxHPh0 JPCJYNWtiseGkjfYGoarT7mAXVNAnoHJb5A7aupyy5YXmjzRy0svf8cgTwFojKfVHifd 2m9LVWtifqs+SqEExVli2fid0trbUSFbYvS3LvuawRdmQN5H/MV65i2YEouSmeXxiXcJ wzbt7XNEKyBCkXjLbb5sOV6sUF4ywkQ379xUA0YxJfb4nF0NJFPTneBn+gr906dDPzGS ueQu+tpG768mf4912NSAgfZbb2QWfSkDoZM5xcXxVLzAahIDnFGB7Jdouzm219hexU0L cw0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=rbjYIf7L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h128si5624338pgc.397.2019.03.07.21.31.06; Thu, 07 Mar 2019 21:31:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=rbjYIf7L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726302AbfCHFa7 (ORCPT + 31 others); Fri, 8 Mar 2019 00:30:59 -0500 Received: from conuserg-09.nifty.com ([210.131.2.76]:56172 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725308AbfCHFa6 (ORCPT ); Fri, 8 Mar 2019 00:30:58 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id x285Udqx017095; Fri, 8 Mar 2019 14:30:39 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com x285Udqx017095 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1552023039; bh=oU7ETBxuT4v8f1zR1m07flzixJJImsBFfOVhlFXCla8=; h=From:To:Cc:Subject:Date:From; b=rbjYIf7LmgjsM6BAPgG6iL4S0u8qkbCW78zhTj56X1Qq8ysGwCy3NsXTT7YnokCvF ZM80rhnviuXsu4Eyf0t5cBVLTqIH1VLVNIzILDYao8s4hIe7rWQBA1fr2ptPwlFhVL +HJsyJRKCVs4dwzNENhAQnfok5FTIbBJYyZXpNIPVUQn3SLjmIF0XOEjvnkcdCxhX4 zSxSppa5+OMqa8q0P39T4fKVFT/RQz35B1nc9eiV8W7kQNVjqw4b0rJRjE5Vkh995d fI9IYg29mGrVKC3ruKWUd/+YAe5PqeL+1DDu1TqN507GlttuOgGimVnL+sTmIesPGM snNmsALXVv2cQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org, Guan Xuetao Subject: [PATCH] unicore32: simplify linker script generation for decompressor Date: Fri, 8 Mar 2019 14:30:35 +0900 Message-Id: <1552023035-29826-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When I was searching for unneeded $(KCONFIG_CONFIG) usages, I noticed this strange build dependency. It can use $(call if_changed,...) in case ZTEXTADDR and ZBSSADDR are changed, but even a simpler way is to use the pattern rule in scripts/Makefile.build. This is what arch/arm/boot/compressed/Makefile does. I did only build test. I confirmed equivalent vmlinux.lds was generated. Signed-off-by: Masahiro Yamada --- arch/unicore32/boot/compressed/Makefile | 5 +---- arch/unicore32/boot/compressed/{vmlinux.lds.in => vmlinux.lds.S} | 0 2 files changed, 1 insertion(+), 4 deletions(-) rename arch/unicore32/boot/compressed/{vmlinux.lds.in => vmlinux.lds.S} (100%) -- 2.7.4 diff --git a/arch/unicore32/boot/compressed/Makefile b/arch/unicore32/boot/compressed/Makefile index 9aecdd3..150fafc 100644 --- a/arch/unicore32/boot/compressed/Makefile +++ b/arch/unicore32/boot/compressed/Makefile @@ -61,7 +61,4 @@ $(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/head.o $(obj)/piggy.o \ ZTEXTADDR := 0x03000000 ZBSSADDR := ALIGN(4) -SEDFLAGS_lds = s/TEXT_START/$(ZTEXTADDR)/;s/BSS_START/$(ZBSSADDR)/ -$(obj)/vmlinux.lds: $(obj)/vmlinux.lds.in arch/unicore32/boot/Makefile $(KCONFIG_CONFIG) - @sed "$(SEDFLAGS_lds)" < $< > $@ - +CPPFLAGS_vmlinux.lds = -DTEXT_START="$(ZTEXTADDR)" -DBSS_START="$(ZBSSADDR)" diff --git a/arch/unicore32/boot/compressed/vmlinux.lds.in b/arch/unicore32/boot/compressed/vmlinux.lds.S similarity index 100% rename from arch/unicore32/boot/compressed/vmlinux.lds.in rename to arch/unicore32/boot/compressed/vmlinux.lds.S