mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Fangrui Song <i@maskray.me>
To: musl@lists.openwall.com
Subject: [PATCH libc-test] include $(B)/config.mak instead of config.mak
Date: Wed, 14 Aug 2019 02:52:29 +0000	[thread overview]
Message-ID: <20190814025229.aydkh3glw5syo6ue@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 144 bytes --]

This makes it easy to test different configurations, e.g.

# cd libc-test
mkdir -p powerpc64le
# edit powerpc64le/config.mak
make B=powerpc64le

[-- Attachment #2: libc-test-include.patch --]
[-- Type: text/x-diff, Size: 600 bytes --]

From 8e39c68bf088b9934e6632d02c129ccc85fcbc32 Mon Sep 17 00:00:00 2001
From: Fangrui Song <i@maskray.me>
Date: Wed, 14 Aug 2019 02:47:22 +0000
Subject: [PATCH] include $(B)/config.mak instead of config.mak

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index e786499..3e15d33 100644
--- a/Makefile
+++ b/Makefile
@@ -34,9 +34,9 @@ all:
 %: s.%
 %: SCCS/s.%
 
-config.mak:
+$(B)/config.mak:
 	cp config.mak.def $@
--include config.mak
+-include $(B)/config.mak
 
 define default_template
 $(1).BINS_TEMPL:=bin.exe bin-static.exe
-- 
2.22.0


             reply	other threads:[~2019-08-14  2:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-14  2:52 Fangrui Song [this message]
2019-08-22 19:39 ` Szabolcs Nagy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190814025229.aydkh3glw5syo6ue@gmail.com \
    --to=i@maskray.me \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).