diff --git a/Makefile b/Makefile index 2c819a822a2..2ba656f2efa 100644 --- a/Makefile +++ b/Makefile @@ -478,7 +478,7 @@ endif version_h := include/generated/version.h -no-dot-config-targets := pristine distclean clean mrproper help kconfig-help \ +no-dot-config-targets := pristine distclean clean mrproper help kconfig-help host-tools \ cscope gtags TAGS tags help% %docs check% \ $(version_h) headers_% kernelversion %src-pkg @@ -1065,7 +1065,7 @@ CLEAN_FILES += include/generated/generated_dts_board.h \ *.bin *.hex *.stat *.strip staticIdt.o linker.cmd # Directories & files removed with 'make mrproper' -MRPROPER_DIRS += include/config usr/include include/generated \ +MRPROPER_DIRS += bin include/config usr/include include/generated \ arch/*/include/generated .tmp_objdiff MRPROPER_FILES += .config .config.old .version $(version_h) \ Module.symvers tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS \ @@ -1193,6 +1193,17 @@ $(help-board-dirs): help-%: echo '') + +host-tools: + $(Q)$(MAKE) $(build)=scripts/kconfig standalone + $(Q)$(MAKE) $(build)=scripts/basic + $(Q)$(MAKE) $(build)=scripts/gen_idt + $(Q)$(MAKE) $(build)=scripts/gen_offset_header + @mkdir -p ${ZEPHYR_BASE}/bin + @cp scripts/basic/fixdep scripts/gen_idt/gen_idt scripts/kconfig/conf \ + scripts/gen_offset_header/gen_offset_header ${ZEPHYR_BASE}/bin + + # Documentation targets # --------------------------------------------------------------------------- %docs: FORCE diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 5e0230444cb..a15068add38 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -34,6 +34,8 @@ gconfig: $(KCONFIG_BIN_PATH)/gconf menuconfig: $(KCONFIG_BIN_PATH)/mconf $< $(Kconfig) +standalone: $(obj)/conf + config: $(KCONFIG_BIN_PATH)/conf $< --oldaskconfig $(Kconfig)