summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2016-04-28 16:43:00 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-05-01 09:12:26 +0200
commite30ffd90ad2615b3d2c8d1f015f91d2bbbefc292 (patch)
tree5ba6421b04b450334017f9c32e5ddd2189251fb6 /rules
parentab12d380e70f4536a8fb043774e877901fa2d27e (diff)
downloadptxdist-e30ffd90ad2615b3d2c8d1f015f91d2bbbefc292.tar.gz
ptxdist-e30ffd90ad2615b3d2c8d1f015f91d2bbbefc292.tar.xz
kernel: introduce symbol KERNEL_XPKG
This symbol controls if a kernel xpkg is created. All kernel tool should select this so that the xpkg is created. Kernel modules will end up in a different xpkg anyways. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r--rules/kernel.in13
-rw-r--r--rules/kernel.make2
-rw-r--r--rules/oprofile.in1
3 files changed, 14 insertions, 2 deletions
diff --git a/rules/kernel.in b/rules/kernel.in
index 1b6733961..77345336b 100644
--- a/rules/kernel.in
+++ b/rules/kernel.in
@@ -1,9 +1,20 @@
## SECTION=core
-config KERNEL
+menuconfig KERNEL
+ bool "kernel tools "
+
+if KERNEL
+
+config KERNEL_XPKG
bool
+ help
+ Select this symbol if kernel tools or other non kernel
+ modules are installed.
config KERNEL_VMLINUX
+ select KERNEL_XPKG
bool
help
install kernel image to /boot/vmlinux
+
+endif
diff --git a/rules/kernel.make b/rules/kernel.make
index b0c1efdcf..4e52defdf 100644
--- a/rules/kernel.make
+++ b/rules/kernel.make
@@ -196,7 +196,7 @@ $(STATEDIR)/kernel.targetinstall:
# delete the kernel image, it might be out-of-date
@rm -f $(IMAGEDIR)/linuximage
-ifneq ($(PTXCONF_KERNEL_INSTALL)$(PTXCONF_KERNEL_VMLINUX),)
+ifdef PTXCONF_KERNEL_XPKG
@$(call install_init, kernel)
@$(call install_fixup, kernel, PRIORITY,optional)
@$(call install_fixup, kernel, SECTION,base)
diff --git a/rules/oprofile.in b/rules/oprofile.in
index 0ab81e123..6efcfb952 100644
--- a/rules/oprofile.in
+++ b/rules/oprofile.in
@@ -25,6 +25,7 @@ if OPROFILE
config OPROFILE_VMLINUX
bool
+ select KERNEL
select KERNEL_VMLINUX
prompt "Install vmlinux"
help