From patchwork Mon Aug 12 12:44:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Woodrow Douglass X-Patchwork-Id: 1971567 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WjDk952N3z1yXl for ; Mon, 12 Aug 2024 22:44:49 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 1C286400FF; Mon, 12 Aug 2024 12:44:48 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id F8J7i0OQOONz; Mon, 12 Aug 2024 12:44:47 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org D5748402AA Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id D5748402AA; Mon, 12 Aug 2024 12:44:46 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id B17E81BF301; Mon, 12 Aug 2024 12:44:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 9EC5B403E5; Mon, 12 Aug 2024 12:44:45 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 0lH4o2LOZwuO; Mon, 12 Aug 2024 12:44:44 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=34.202.193.197; helo=sendmail.purelymail.com; envelope-from=git@douglass.dev; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp2.osuosl.org 4AD4B40018 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 4AD4B40018 Received: from sendmail.purelymail.com (sendmail.purelymail.com [34.202.193.197]) by smtp2.osuosl.org (Postfix) with ESMTPS id 4AD4B40018 for ; Mon, 12 Aug 2024 12:44:44 +0000 (UTC) Feedback-ID: 3578:1022:null:purelymail X-Pm-Original-To: buildroot@buildroot.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 1175967067; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Mon, 12 Aug 2024 12:44:40 +0000 (UTC) To: buildroot@buildroot.org Date: Mon, 12 Aug 2024 08:44:32 -0400 Message-Id: <20240812124432.12506-1-wdouglass@carnegierobotics.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <878qx93exs.fsf@tarshish> References: <878qx93exs.fsf@tarshish> MIME-Version: 1.0 X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dmarc=fail (p=quarantine dis=none) header.from=carnegierobotics.com Subject: [Buildroot] [PATCH] package/chicken: pass TARGET_CFLAGS to chicken build system explicitly X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Woodrow Douglass via buildroot From: Woodrow Douglass Reply-To: Woodrow Douglass Cc: Woodrow Douglass Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Chicken Scheme's build system wants cflags to be passed as a make variable in a way that's different then what buildroot expects. this bridges the gap. This commit also fixes the xtensa build problems, negating the need for the xtensa build patch Signed-off-by: Woodrow Douglass --- .../0001-xtensa-text-section-literals.patch | 30 ------------------- package/chicken/chicken.mk | 3 +- 2 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 package/chicken/0001-xtensa-text-section-literals.patch diff --git a/package/chicken/0001-xtensa-text-section-literals.patch b/package/chicken/0001-xtensa-text-section-literals.patch deleted file mode 100644 index b93aaf9e21..0000000000 --- a/package/chicken/0001-xtensa-text-section-literals.patch +++ /dev/null @@ -1,30 +0,0 @@ -From e8d177f4d4e1c6bc41787ea1621e323ff4ad493e Mon Sep 17 00:00:00 2001 -From: Woodrow Douglass -Date: Mon, 22 Jul 2024 08:50:37 -0400 -Subject: [PATCH] Move literals into text section for xtensa architecture - -Upstream: https://bugs.call-cc.org/ticket/1840 -Signed-off-by: Woodrow Douglass ---- - Makefile.linux | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/Makefile.linux b/Makefile.linux -index b628cda4..e97c2b94 100644 ---- a/Makefile.linux -+++ b/Makefile.linux -@@ -52,6 +52,11 @@ USES_SONAME = yes - - # architectures - -+ifeq ($(ARCH),xtensa) -+C_COMPILER_OPTIONS += -mtext-section-literals -+LINKER_OPTIONS += -mtext-section-literals -+endif -+ - ifeq ($(ARCH),x32) - C_COMPILER_OPTIONS += -mx32 - LINKER_OPTIONS += -mx32 --- -2.39.2 - diff --git a/package/chicken/chicken.mk b/package/chicken/chicken.mk index 0520280134..2bd1181fc6 100644 --- a/package/chicken/chicken.mk +++ b/package/chicken/chicken.mk @@ -16,8 +16,6 @@ CHICKEN_INSTALL_STAGING = YES # values that have an effect, or pass "unused" here ifeq ($(NORMALIZED_ARCH),x86_64) CHICKEN_ARCH = x86-64 -else ifeq ($(NORMALIZED_ARCH),xtensa) -CHICKEN_ARCH = xtensa else CHICKEN_ARCH = unused endif @@ -25,6 +23,7 @@ endif CHICKEN_MAKE_OPTS = \ ARCH="$(CHICKEN_ARCH)" \ C_COMPILER="$(TARGET_CC)" \ + C_COMPILER_OPTIMIZATION_OPTIONS="$(TARGET_CFLAGS) -fwrapv -DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES" \ CXX_COMPILER="$(TARGET_CXX)" \ PREFIX=/usr \ PLATFORM=linux \