istoreos: supports build kernel image only

This commit is contained in:
Liangbin Lian 2024-12-30 15:47:31 +08:00
parent e298339e35
commit edecc196f2
3 changed files with 7 additions and 1 deletions

View File

@ -184,4 +184,6 @@ define BuildKernel
prereq: image-prereq
image: $(LINUX_DIR)/.image
endef

View File

@ -168,6 +168,7 @@ ifneq ($(DISTRO_PKG_CONFIG),)
kernel_menuconfig: export PATH:=$(dir $(DISTRO_PKG_CONFIG)):$(PATH)
kernel_nconfig: export PATH:=$(dir $(DISTRO_PKG_CONFIG)):$(PATH)
kernel_xconfig: export PATH:=$(dir $(DISTRO_PKG_CONFIG)):$(PATH)
kernel_image: export PATH:=$(dir $(DISTRO_PKG_CONFIG)):$(PATH)
endif
kernel_menuconfig: prepare_kernel_conf
$(_SINGLE)$(NO_TRACE_MAKE) -C target/linux menuconfig
@ -178,6 +179,9 @@ kernel_nconfig: prepare_kernel_conf
kernel_xconfig: prepare_kernel_conf
$(_SINGLE)$(NO_TRACE_MAKE) -C target/linux xconfig
kernel_image: prepare_kernel_conf
$(_SINGLE)$(NO_TRACE_MAKE) -C target/linux image
$(STAGING_DIR_HOST)/.prereq-build: include/prereq-build.mk
mkdir -p tmp
@$(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f $(TOPDIR)/include/prereq-build.mk prereq 2>/dev/null || { \

View File

@ -8,5 +8,5 @@ include $(INCLUDE_DIR)/default-packages.mk
export TARGET_BUILD=1
prereq clean download prepare compile install oldconfig menuconfig nconfig xconfig update refresh dtb: FORCE
prereq clean download prepare compile install oldconfig menuconfig nconfig xconfig update refresh dtb image: FORCE
@+$(NO_TRACE_MAKE) -C $(firstword $(wildcard feeds/$(BOARD) $(BOARD))) $@