[PATCH RFC 1/3] kbuild: add toplevel target for usr/gen_init_cpio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The nolibc testsuite wants to generate an initrams without linking it
into the kernel for which it needs access to gen_init_cpio.
Add a new toplevel target for it so it can be built standalone.

Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>

---

Kbuild maintainers:

If there is a way that does not require modification of the toplevel
Makefile that would be nice, too.
I followed the example of the "scripts_unifdef" target.
---
 Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index ceb23eed4dce..1caa4429eceb 100644
--- a/Makefile
+++ b/Makefile
@@ -1812,6 +1812,10 @@ endif
 
 endif # KBUILD_EXTMOD
 
+PHONY += usr_gen_init_cpio
+usr_gen_init_cpio:
+	$(Q)$(MAKE) $(build)=usr usr/gen_init_cpio
+
 # ---------------------------------------------------------------------------
 # Modules
 

-- 
2.42.0




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux