Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1495082rwd; Thu, 8 Jun 2023 20:04:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7QZ0OtqtG7p3SjKL2Krg1Hj6p4R2rL74H3BENrueOhTUch3BSrLkcd0b0KcuUF1Xn8OMVF X-Received: by 2002:a05:6a20:7f9e:b0:104:a053:12dd with SMTP id d30-20020a056a207f9e00b00104a05312ddmr731060pzj.10.1686279843269; Thu, 08 Jun 2023 20:04:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686279843; cv=none; d=google.com; s=arc-20160816; b=kvyh3uzkYw0yS7/8ebCQU6orIEY+t1dLWQ5VKS+ZCNw+GX9s2EEbv2NwvIaoXosTkW hqUdDNCnpfgYbmp78XUb8ApQv+dJswrWH/0ah8UP8onmAUya1t5oZSdZ72Y49iRhwwaD Sd0YBbI8WLlB61aYa152+WA4vGpsEzcABeA0Y9SDOZcAfiKYkMNbRvnt+QbILAAGuh4G /yAEd/3BL1+zH6ZIoBJEps71HovhRSsiRusLTz3Bdi3idAh+hBorJ10vPi4PsO3CLpym 3f/kVFKQfKuVOng2KWuVsOt3hqYq/f5KVj451ivZlKaGCGNsl/BVWjyXRcCHt8MSptPT yqCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=OnkNTQ7vQ/65tI6egNmBI+KQzCz/La0xHvOB9G5PUAU=; b=Qgoer1fm2Orp4QrLUiqp1v452Oz9CoZTxj6WCrRZHjPr/QQx+Hd5XfmNlOcJvuwzLh 1/hv2ta00knfQ7YzcvrUTW9966uxh1otq731ZgV9CL8Hwyjw5e98TxJd8xfuBevYy0yM UxlEj6ANJ7TXhYwYnAWwYXG9pLqXPhWQ/P3b3O3lsMM/y+UBdZGc/r92ZQZPTz8LI2Sw RkaOMCZ0NJ/ANv4jeKirK9KjBc9AG1jxZmalAga5BJb9itvLNXm/oIOnr54hVISXBD5X dNZbobbQoE+zUDVPgOcMETWWd7MYefXqppJbq187Gwq1TR9KMFFhWovCQtJm/VkhHTBX dZOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=KaYDTzWL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k17-20020aa79991000000b0065f61db315dsi1721558pfh.204.2023.06.08.20.03.48; Thu, 08 Jun 2023 20:04:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=KaYDTzWL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237668AbjFICcK (ORCPT + 99 others); Thu, 8 Jun 2023 22:32:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229787AbjFICcI (ORCPT ); Thu, 8 Jun 2023 22:32:08 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDB141993 for ; Thu, 8 Jun 2023 19:32:07 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-64d57cd373fso930403b3a.1 for ; Thu, 08 Jun 2023 19:32:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686277927; x=1688869927; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=OnkNTQ7vQ/65tI6egNmBI+KQzCz/La0xHvOB9G5PUAU=; b=KaYDTzWL/CVTKWhB4aYRc8okkpBqZxKD8FOCsDrm1SrY+UB+BSZL63gPGIrlFIWNWm CU2bocDEjoQpHZ0HHkyx8alDOL/QpJAQZe3694UQLx+I32CjmLwNB5i6X83jA0TTWUc8 l1yfiZitbxc1BYUl+YbgzNiGzGR5/DJGnAtSUfcEpW1Y4x6toq6o20t5J5r5lqYTpRn/ Kspk/labEu0oZu7X2SpS4I3r/z8qVr0eXZFKF+ITU00wuhTE5PrEC4OQsKLaPwtxmTDX xzMXGDgH5yE0mMZU0TK3HT3hStWYyHIl44Qwl+Jq3iJo00dMhoSa/hDliHIHscdZnrAy V+RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686277927; x=1688869927; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OnkNTQ7vQ/65tI6egNmBI+KQzCz/La0xHvOB9G5PUAU=; b=gL9TBCX6AzzL/3STCapnBPLbYPRhdgZJ/GC4ATxin1IIWRfNu4w8CUi3Xq4dxZcp4P /QwgJ0Q6GyElvd8JHJMc6q0He6+fuu/oIPH4voX0ZjfEmYThJj9TvOR8w/bUMP9+GdYJ ztgMiz8nNcFsK/ubsv25oHVN2dqTVkL3IyIsehWBa0k3ei5B7ddsaxZlmOYjeLSenpWG XhLAYRmYzK7NKyVwzGxwy7wyUYoIWbQ4l/EujrW2VYyKumwXvQ7wOw71Z5wa3nHHRylR mcgC5YZA+OZFoiaKL2jXDFoSIWzyqCm9o9Y9F61ap+hcQk+SH6yWqYZIxqvi97lSsmle AXGQ== X-Gm-Message-State: AC+VfDywg3uu1QM/SiEFHVNn3Q+JcPppcTMF6Nvb/uoee9uvakY3f52a ytRrdcFNUsY4bEm+kyN4XyCyYivkfmE= X-Received: by 2002:a05:6a20:160d:b0:10b:d70d:f971 with SMTP id l13-20020a056a20160d00b0010bd70df971mr741977pzj.3.1686277926936; Thu, 08 Jun 2023 19:32:06 -0700 (PDT) Received: from octofox.hsd1.ca.comcast.net ([2601:641:401:1d20:3aa3:2af1:e3f1:5039]) by smtp.gmail.com with ESMTPSA id c26-20020a62e81a000000b0064d413ca7desm1708900pfi.171.2023.06.08.19.32.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 19:32:05 -0700 (PDT) From: Max Filippov To: linux-kernel@vger.kernel.org Cc: Chris Zankel , Max Filippov Subject: [PATCH] xtensa: boot-redboot: clean up Makefile Date: Thu, 8 Jun 2023 19:32:00 -0700 Message-Id: <20230609023200.1694846-1-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Drop references to external library search directory and compiler libgcc from the link command. Use KBUILD_LDFLAGS in the link command. Signed-off-by: Max Filippov --- arch/xtensa/boot/boot-redboot/Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/arch/xtensa/boot/boot-redboot/Makefile b/arch/xtensa/boot/boot-redboot/Makefile index 1d1d46215b1c..c0eef3f6f32d 100644 --- a/arch/xtensa/boot/boot-redboot/Makefile +++ b/arch/xtensa/boot/boot-redboot/Makefile @@ -6,16 +6,12 @@ OBJCOPY_ARGS := -O $(if $(CONFIG_CPU_BIG_ENDIAN),elf32-xtensa-be,elf32-xtensa-le) -LD_ARGS = -T $(srctree)/$(obj)/boot.ld - boot-y := bootstrap.o targets += $(boot-y) OBJS := $(addprefix $(obj)/,$(boot-y)) LIBS := arch/xtensa/boot/lib/lib.a arch/xtensa/lib/lib.a -LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) - $(obj)/zImage.o: $(obj)/../vmlinux.bin.gz $(OBJS) $(Q)$(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ --add-section image=$< \ @@ -23,7 +19,10 @@ $(obj)/zImage.o: $(obj)/../vmlinux.bin.gz $(OBJS) $(OBJS) $@ $(obj)/zImage.elf: $(obj)/zImage.o $(LIBS) - $(Q)$(LD) $(LD_ARGS) -o $@ $^ -L/xtensa-elf/lib $(LIBGCC) + $(Q)$(LD) $(KBUILD_LDFLAGS) \ + -T $(srctree)/$(obj)/boot.ld \ + --build-id=none \ + -o $@ $^ $(obj)/../zImage.redboot: $(obj)/zImage.elf $(Q)$(OBJCOPY) -S -O binary $< $@ -- 2.30.2