* [PATCH libc-test] include $(B)/config.mak instead of config.mak
@ 2019-08-14 2:52 Fangrui Song
2019-08-22 19:39 ` Szabolcs Nagy
0 siblings, 1 reply; 2+ messages in thread
From: Fangrui Song @ 2019-08-14 2:52 UTC (permalink / raw)
To: musl
[-- 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH libc-test] include $(B)/config.mak instead of config.mak
2019-08-14 2:52 [PATCH libc-test] include $(B)/config.mak instead of config.mak Fangrui Song
@ 2019-08-22 19:39 ` Szabolcs Nagy
0 siblings, 0 replies; 2+ messages in thread
From: Szabolcs Nagy @ 2019-08-22 19:39 UTC (permalink / raw)
To: musl
* Fangrui Song <i@maskray.me> [2019-08-14 02:52:29 +0000]:
> --- 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
>
this can break existing usage
by default B=src not .
for now you can include $(B)/config.mak
into your top level config.mak
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-08-22 19:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-14 2:52 [PATCH libc-test] include $(B)/config.mak instead of config.mak Fangrui Song
2019-08-22 19:39 ` Szabolcs Nagy
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).