diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-10-27 12:50:47 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-11-10 08:50:47 +0100 |
commit | 4c9636a9813fd8b1ec28d8b2f96ab800f02fa8cf (patch) | |
tree | a3758a4001e3207dae28b11e478fba25f1a2f751 /rules/image-kernel.make | |
parent | d6e148c60b71ab2ea28e59a35e7e8ab168e3d329 (diff) | |
download | ptxdist-4c9636a9813fd8b1ec28d8b2f96ab800f02fa8cf.tar.gz ptxdist-4c9636a9813fd8b1ec28d8b2f96ab800f02fa8cf.tar.xz |
kernel: cleanup rule
Use _CONF_OPT/_MAKE_OPT/_INSTALL_OPT. This makes it possible to use more of
the generic build stages.
KBUILD_BUILD_* is now handled by the generic build stages.
Add some magic to detect external kernel modules that still use
KERNEL_MAKEVARS.
Drop the patch handling in clean. Patches are not applied if a local_src/
symlink is used.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/image-kernel.make')
-rw-r--r-- | rules/image-kernel.make | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rules/image-kernel.make b/rules/image-kernel.make index d7b3c5b41..5c5e049ee 100644 --- a/rules/image-kernel.make +++ b/rules/image-kernel.make @@ -30,8 +30,7 @@ ifdef PTXCONF_IMAGE_KERNEL_INITRAMFS @echo "Creating '$(KERNEL_IMAGE)' including '$(notdir $(IMAGE_ROOT_CPIO_IMAGE))'..." @sed -i -e 's,^CONFIG_INITRAMFS_SOURCE.*$$,CONFIG_INITRAMFS_SOURCE=\"$(IMAGE_ROOT_CPIO_IMAGE)\",g' \ $(KERNEL_DIR)/.config - @cd $(KERNEL_DIR) && $(KERNEL_PATH) $(KERNEL_ENV) $(MAKE) \ - $(KERNEL_MAKEVARS) $(KERNEL_IMAGE) + @$(call compile, KERNEL, $(KERNEL_MAKE_OPT) $(KERNEL_IMAGE)) endif @echo "Creating '$(notdir $(@))' from '$(notdir $(KERNEL_IMAGE_PATH_y))'..." |