@ -11,27 +11,6 @@ ifneq ($(SOURCE_DATE_EPOCH),)
endif
e n d i f
KERNEL_MAKEOPTS := -C $( LINUX_DIR) \
HOSTCFLAGS = " $( HOST_CFLAGS) -Wall -Wmissing-prototypes -Wstrict-prototypes " \
CROSS_COMPILE = " $( KERNEL_CROSS) " \
ARCH = " $( LINUX_KARCH) " \
KBUILD_HAVE_NLS = no \
KBUILD_BUILD_USER = " $( call qstrip,$( CONFIG_KERNEL_BUILD_USER) ) " \
KBUILD_BUILD_HOST = " $( call qstrip,$( CONFIG_KERNEL_BUILD_DOMAIN) ) " \
KBUILD_BUILD_TIMESTAMP = " $( KBUILD_BUILD_TIMESTAMP) " \
KBUILD_BUILD_VERSION = "0" \
HOST_LOADLIBES = " -L $( STAGING_DIR_HOST) /lib " \
CONFIG_SHELL = " $( BASH) " \
$( if $( findstring c,$( OPENWRT_VERBOSE) ) ,V= 1,V= '' ) \
$( if $( PKG_BUILD_ID) ,LDFLAGS_MODULE= --build-id= 0x$( PKG_BUILD_ID) ) \
cmd_syscalls =
i f e q ( $( call qstrip ,$ ( CONFIG_EXTERNAL_KERNEL_TREE ) ) $( call qstrip ,$ ( CONFIG_KERNEL_GIT_CLONE_URI ) ) , )
KERNEL_MAKEOPTS += \
KERNELRELEASE = $( LINUX_VERSION)
e n d i f
i f d e f C O N F I G _ S T R I P _ K E R N E L _ E X P O R T S
KERNEL_MAKEOPTS += \
EXTRA_LDSFLAGS = " -I $( KERNEL_BUILD_DIR) -include symtab.h "
@ -43,10 +22,6 @@ ifneq (,$(KERNEL_CC))
KERNEL_MAKEOPTS += CC = " $( KERNEL_CC) "
e n d i f
i f d e f C O N F I G _ U S E _ S P A R S E
KERNEL_MAKEOPTS += C = 1 CHECK = $( STAGING_DIR_HOST) /bin/sparse
e n d i f
export HOST_EXTRACFLAGS = -I$( STAGING_DIR_HOST) /include
# defined in quilt.mk
@ -127,7 +102,7 @@ define Kernel/Configure/Default
cp $( LINUX_DIR) /.config.set $( LINUX_DIR) /.config; \
cp $( LINUX_DIR) /.config.set $( LINUX_DIR) /.config.prev; \
}
$( _SINGLE) [ -d $( LINUX_DIR) /user_headers ] || $( MAKE) $( KERNEL_MAKEOPTS ) INSTALL_HDR_PATH = $( LINUX_DIR) /user_headers headers_install
$( _SINGLE) [ -d $( LINUX_DIR) /user_headers ] || $( KERNEL_MAKE) INSTALL_HDR_PATH = $( LINUX_DIR) /user_headers headers_install
grep '=[ym]' $( LINUX_DIR) /.config.set | LC_ALL = C sort | mkhash md5 > $( LINUX_DIR) /.vermagic
e n d e f
@ -137,7 +112,7 @@ endef
d e f i n e K e r n e l / C o m p i l e M o d u l e s / D e f a u l t
rm -f $( LINUX_DIR) /vmlinux $( LINUX_DIR) /System.map
+$( MAKE) $( KERNEL_MAKEOPTS ) modules
+$( KERNEL_MAKE) modules
e n d e f
OBJCOPY_STRIP = -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id
@ -161,7 +136,7 @@ endef
d e f i n e K e r n e l / C o m p i l e I m a g e / D e f a u l t
rm -f $( TARGET_DIR) /init
+$( MAKE) $( KERNEL_MAKEOPTS ) $( if $( KERNELNAME) ,$( KERNELNAME) ,all) modules
+$( KERNEL_MAKE) $( if $( KERNELNAME) ,$( KERNELNAME) ,all) modules
$( call Kernel/CopyImage)
e n d e f
@ -170,7 +145,7 @@ define Kernel/CompileImage/Initramfs
$( call Kernel/Configure/Initramfs)
$( CP) $( GENERIC_PLATFORM_DIR) /other-files/init $( TARGET_DIR) /init
rm -rf $( KERNEL_BUILD_DIR) /linux-$( LINUX_VERSION) /usr/initramfs_data.cpio*
+$( MAKE) $( KERNEL_MAKEOPTS ) $( if $( KERNELNAME) ,$( KERNELNAME) ,all) modules
+$( KERNEL_MAKE) $( if $( KERNELNAME) ,$( KERNELNAME) ,all) modules
$( call Kernel/CopyImage,-initramfs)
e n d e f
e l s e