Thread (36 messages) 36 messages, 7 authors, 2018-04-11

Re: [PATCH v5] mk: add sensible default target with defconfig

From: Thomas Monjalon <hidden>
Date: 2017-08-05 08:24:58

04/08/2017 12:39, David Hunt:
Users can now use 'make defconfig' to generate a configuration using
the most appropriate defaults for the current machine.

<arch-machine-execenv-toolchain>
  arch taken from uname -m
  machine defaults to native
  execenv is taken from uname, Linux=linuxapp, otherwise bsdapp
  toolchain is taken from $CC -v to see which compiler to use

Signed-off-by: David Hunt <redacted>
Acked-by: Shreyansh Jain <redacted>
Tested-by: Jerin Jacob <redacted>
---
[...]
quoted hunk ↗ jump to hunk
--- a/doc/build-sdk-quick.txt
+++ b/doc/build-sdk-quick.txt
@@ -1,7 +1,10 @@
 Basic build
+	make defconfig && make
+	or
 	make config T=x86_64-native-linuxapp-gcc && make
Nice :)
+	@echo "Configuration done using "$(shell basename \
+		$(RTE_CONFIG_TEMPLATE) | sed "s/defconfig_//g")
Excuse me for being pedantic with Makefile, I will avoid shell invocation:

+       @echo "Configuration done using" \
+               $(patsubst defconfig_%,%,$(notdir $(RTE_CONFIG_TEMPLATE)))


Applied with my pedantic change, thanks :)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help