Skip to contentSkip to conversation

build-sys: make help could have 'modules' target

PATCH Applied Marc-André Lureau 3 participants 3 messages Mar 6, 2018 – Mar 7, 2018 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build-sys: make help could have 'modules' target

Available when configure --enable-modules.

---
 Makefile | 3 +++
 1 file changed, 3 insertions(+)
Makefile +3 -0
index 9a75c48ae0..5d9ef3b8fd 100644
@@ -1046,6 +1046,9 @@ include $(SRC_PATH)/tests/vm/Makefile.include
 help:
 	@echo  'Generic targets:'
 	@echo  '  all             - Build all'
+ifdef CONFIG_MODULES
+	@echo  '  modules         - Build all modules'
+endif
 	@echo  '  dir/file.o      - Build specified target only'
 	@echo  '  install         - Install QEMU, documentation and tools'
 	@echo  '  ctags/TAGS      - Generate tags file for editors'
Signature · 1 line
2.16.2.346.g9779355e34
#1 lore raw
Quoted 12 lines · Marc-André Lureau

Available when configure --enable-modules.

---
 Makefile | 3 +++
 1 file changed, 3 insertions(+)
Makefile +0 -0
index 9a75c48ae0..5d9ef3b8fd 100644

Makefile include $(SRC_PATH)/tests/vm/Makefile.include · line 1051

Quoted 6 lines
Makefile +3 -0
@@ -1046,6 +1046,9 @@ include $(SRC_PATH)/tests/vm/Makefile.include
 help:
 	@echo  'Generic targets:'
 	@echo  '  all             - Build all'
+ifdef CONFIG_MODULES
+	@echo  '  modules         - Build all modules'
+endif

Hi Marc-André,

I'd just remove the 'ifdef' condition and include the line everywhere, since this is the help. The behavior is fine even without running ./configure:

$ make modules
make: Nothing to be done for 'modules'.
$ make all
make: Nothing to be done for 'all'.

Fam

#2 lore raw
Quoted 25 lines · Fam Zheng
Quoted 12 lines · Marc-André Lureau

Available when configure --enable-modules.

---
 Makefile | 3 +++
 1 file changed, 3 insertions(+)
Makefile +0 -0
index 9a75c48ae0..5d9ef3b8fd 100644

Makefile include $(SRC_PATH)/tests/vm/Makefile.include · line 1051

Quoted 6 lines
Makefile +3 -0
@@ -1046,6 +1046,9 @@ include $(SRC_PATH)/tests/vm/Makefile.include
 help:
 	@echo  'Generic targets:'
 	@echo  '  all             - Build all'
+ifdef CONFIG_MODULES
+	@echo  '  modules         - Build all modules'
+endif

Hi Marc-André,

I'd just remove the 'ifdef' condition and include the line everywhere, since this is the help. The behavior is fine even without running ./configure:

Quoted 7 lines
$ make modules
make: Nothing to be done for 'modules'.
$ make all
make: Nothing to be done for 'all'.

Fam

Queued, thanks.

Paolo