From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 25 Oct 2021 09:37:44 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1meuYC-0004re-14 for lore@lore.pengutronix.de; Mon, 25 Oct 2021 09:37:44 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1meuYB-0002B9-CX; Mon, 25 Oct 2021 09:37:43 +0200 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1meuY4-0002Au-2D; Mon, 25 Oct 2021 09:37:36 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1meuY3-0003To-Na; Mon, 25 Oct 2021 09:37:35 +0200 Date: Mon, 25 Oct 2021 09:37:35 +0200 From: Michael Olbrich To: Roland Hieber Message-ID: <20211025073735.GD29451@pengutronix.de> Mail-Followup-To: Roland Hieber , distrokit@pengutronix.de References: <20211024194534.6704-1-rhi@pengutronix.de> <20211024194534.6704-7-rhi@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211024194534.6704-7-rhi@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 09:33:33 up 249 days, 10:57, 117 users, load average: 0.10, 0.19, 0.19 User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [DistroKit] [PATCH 7/8] mips, mipsel: don't actually compile the kernel X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: distrokit@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false On Sun, Oct 24, 2021 at 09:45:33PM +0200, Roland Hieber wrote: > The kernel package only exists to serve a REF_CONFIG for the extra > kernel packages, and to compile the userspace kernel tools for debugging > purposes. Make the actual kernel compilation and install steps a no-op > to save time during the build process, but leave the respective lines in > to make porting upstream patches to the kernel recipe easier in the > future. Why is it easier? The kernel package is completely different now. It serves a different purpose and the lines that are commented mean that patches won't apply either. And I don't think it's actually useful to backport anything. > > Signed-off-by: Roland Hieber > --- > configs/platform-mips/platforms/kernel.in | 103 ++++++++++--------- > configs/platform-mips/rules/kernel.make | 107 +++++++++++--------- > configs/platform-mipsel/platforms/kernel.in | 103 ++++++++++--------- > configs/platform-mipsel/rules/kernel.make | 107 +++++++++++--------- > 4 files changed, 222 insertions(+), 198 deletions(-) > > diff --git a/configs/platform-mips/platforms/kernel.in b/configs/platform-mips/platforms/kernel.in > index 06b6e24a6756..d84d0122ec41 100644 > --- a/configs/platform-mips/platforms/kernel.in > +++ b/configs/platform-mips/platforms/kernel.in > @@ -23,36 +23,39 @@ config KERNEL_XPKG > Select this symbol if kernel tools or other non kernel > modules are installed. > > -config KERNEL_INSTALL > - bool > - prompt "install kernel into /boot" > - select KERNEL_XPKG > - > -config KERNEL_MODULES > - bool > - default y > - prompt "build kernel-modules" > +comment "NOTE: this kernel only exists for the userspace kernel tools and a REF_CONFIG." > +comment "The actual kernels come from the extra kernel-* packages." > +# > + config KERNEL_INSTALL > + bool > +# prompt "install kernel into /boot" Do you need to keep the symbol? I would prefer to remove all of this stuff. Michael > +# select KERNEL_XPKG > + > + config KERNEL_MODULES > + bool > +# default y > +# prompt "build kernel-modules" > > config KERNEL_MODULES_INSTALL > bool > - default y > - prompt "Install modules into /lib/modules" > - depends on KERNEL_MODULES > - > +# default y > +# prompt "Install modules into /lib/modules" > +# depends on KERNEL_MODULES > +# > config KERNEL_MODULES_SIGN > bool > - depends on KERNEL_MODULES > - select KERNEL_CODE_SIGNING > - select KERNEL_MODULES_INSTALL > - prompt "sign modules" > - help > - If enabled, kernel modules are signed during the install stage with > - the key specified by the code signing provider in the "kernel-modules" > - role. > - > - See the section "Kernel module signing" in the "Daily Work" chapter in > - the PTXdist manual for use cases and more infos about what needs to be > - enabled in the kernel config file. > +# depends on KERNEL_MODULES > +# select KERNEL_CODE_SIGNING > +# select KERNEL_MODULES_INSTALL > +# prompt "sign modules" > +# help > +# If enabled, kernel modules are signed during the install stage with > +# the key specified by the code signing provider in the "kernel-modules" > +# role. > +# > +# See the section "Kernel module signing" in the "Daily Work" chapter in > +# the PTXdist manual for use cases and more infos about what needs to be > +# enabled in the kernel config file. > > config KERNEL_VERSION > prompt "kernel version" > @@ -174,31 +177,31 @@ config KERNEL_IMAGE > default "Image" if KERNEL_IMAGE_RAW > default "simpleImage.${PTXCONF_KERNEL_IMAGE_SIMPLE_TARGET}.elf" if KERNEL_IMAGE_SIMPLE > > -menuconfig KERNEL_DTB > - bool > - prompt "Build device trees " > - > -if KERNEL_DTB > - > -config KERNEL_DTS_PATH > - string "path to source dts file" > - default "${PTXDIST_PLATFORMCONFIG_SUBDIR}/dts:${KERNEL_DIR}/arch/${GENERIC_KERNEL_ARCH}/boot/dts" > - help > - Define path to the dts source file. Multiple directories can be > - specified separated by ':'. A relative path will be expanded relative > - to the workspace and all other layers. Only on of the specified paths > - can be a relative path. > - > -config KERNEL_DTS > - string "source dts file" > - default ".dts" > - help > - Select the dts file to use for the device tree binary > - blob generation. For relative file names KERNEL_DTS_PATH > - is used as a search path for the device tree files specified > - here. Multiple dts files can be specified, separated by spaces. > - > -endif > +#menuconfig KERNEL_DTB > +# bool > +# prompt "Build device trees " > +# > +#if KERNEL_DTB > +# > +#config KERNEL_DTS_PATH > +# string "path to source dts file" > +# default "${PTXDIST_PLATFORMCONFIG_SUBDIR}/dts:${KERNEL_DIR}/arch/${GENERIC_KERNEL_ARCH}/boot/dts" > +# help > +# Define path to the dts source file. Multiple directories can be > +# specified separated by ':'. A relative path will be expanded relative > +# to the workspace and all other layers. Only on of the specified paths > +# can be a relative path. > +# > +#config KERNEL_DTS > +# string "source dts file" > +# default ".dts" > +# help > +# Select the dts file to use for the device tree binary > +# blob generation. For relative file names KERNEL_DTS_PATH > +# is used as a search path for the device tree files specified > +# here. Multiple dts files can be specified, separated by spaces. > +# > +#endif > > config KERNEL_CODE_SIGNING > prompt "use code signing infrastructure" > diff --git a/configs/platform-mips/rules/kernel.make b/configs/platform-mips/rules/kernel.make > index 9caff677918e..d422ecf1030b 100644 > --- a/configs/platform-mips/rules/kernel.make > +++ b/configs/platform-mips/rules/kernel.make > @@ -235,10 +235,12 @@ KERNEL_TOOL_IIO_OPTS := \ > > $(STATEDIR)/kernel.compile: > @$(call targetinfo) > - @rm -f \ > - $(KERNEL_BUILD_DIR)/usr/initramfs_data.cpio.* \ > - $(KERNEL_BUILD_DIR)/usr/.initramfs_data.cpio.* > - @$(call world/compile, KERNEL) > +# NOTE: this kernel only exists for the userspace kernel tools and a REF_CONFIG. > +# The actual kernels come from the extra kernel-* packages. > +# @rm -f \ > +# $(KERNEL_BUILD_DIR)/usr/initramfs_data.cpio.* \ > +# $(KERNEL_BUILD_DIR)/usr/.initramfs_data.cpio.* > +# @$(call world/compile, KERNEL) > ifdef PTXCONF_KERNEL_TOOL_PERF > @mkdir -p $(KERNEL_BUILD_DIR)/tools/perf > @$(call compile, KERNEL, $(KERNEL_TOOL_PERF_OPTS)) > @@ -260,10 +262,12 @@ KERNEL_INSTALL_OPT = \ > > $(STATEDIR)/kernel.install: > @$(call targetinfo) > -ifdef PTXCONF_KERNEL_MODULES_INSTALL > - @$(call world/install, KERNEL) > -endif > - @$(call world/dtb, KERNEL) > +# NOTE: this kernel only exists for the userspace kernel tools and a REF_CONFIG. > +# The actual kernels come from the extra kernel-* packages. > +#ifdef PTXCONF_KERNEL_MODULES_INSTALL > +# @$(call world/install, KERNEL) > +#endif > +# @$(call world/dtb, KERNEL) > @$(call touch) > > # ---------------------------------------------------------------------------- > @@ -272,11 +276,13 @@ endif > > $(STATEDIR)/kernel.targetinstall: > @$(call targetinfo) > - > - @$(foreach dtb, $(KERNEL_DTB_FILES), \ > - echo -e "Installing $(dtb) ...\n"$(ptx/nl) \ > - install -D -m0644 $(KERNEL_PKGDIR)/boot/$(dtb) \ > - $(IMAGEDIR)/$(dtb)$(ptx/nl)) > +# NOTE: this kernel only exists for the userspace kernel tools and a REF_CONFIG. > +# The actual kernels come from the extra kernel-* packages. > +# > +# @$(foreach dtb, $(KERNEL_DTB_FILES), \ > +# echo -e "Installing $(dtb) ...\n"$(ptx/nl) \ > +# install -D -m0644 $(KERNEL_PKGDIR)/boot/$(dtb) \ > +# $(IMAGEDIR)/$(dtb)$(ptx/nl)) > > ifdef PTXCONF_KERNEL_XPKG > @$(call install_init, kernel) > @@ -285,20 +291,20 @@ ifdef PTXCONF_KERNEL_XPKG > @$(call install_fixup, kernel, AUTHOR,"Robert Schwebel ") > @$(call install_fixup, kernel, DESCRIPTION,missing) > > - @$(call install_copy, kernel, 0, 0, 0755, /boot); > - > -ifdef PTXCONF_KERNEL_INSTALL > - @$(call install_copy, kernel, 0, 0, 0644, $(KERNEL_IMAGE_PATH_y), /boot/$(KERNEL_IMAGE), n) > - > - @$(foreach dtb, $(KERNEL_DTB_FILES), \ > - $(call install_copy, kernel, 0, 0, 0644, -, \ > - /boot/$(dtb), n)$(ptx/nl)) > -endif > +# @$(call install_copy, kernel, 0, 0, 0755, /boot); > +# > +#ifdef PTXCONF_KERNEL_INSTALL > +# @$(call install_copy, kernel, 0, 0, 0644, $(KERNEL_IMAGE_PATH_y), /boot/$(KERNEL_IMAGE), n) > +# > +# @$(foreach dtb, $(KERNEL_DTB_FILES), \ > +# $(call install_copy, kernel, 0, 0, 0644, -, \ > +# /boot/$(dtb), n)$(ptx/nl)) > +#endif > > # install the ELF kernel image for debugging purpose > -ifdef PTXCONF_KERNEL_VMLINUX > - @$(call install_copy, kernel, 0, 0, 0644, $(KERNEL_BUILD_DIR)/vmlinux, /boot/vmlinux, n) > -endif > +#ifdef PTXCONF_KERNEL_VMLINUX > +# @$(call install_copy, kernel, 0, 0, 0644, $(KERNEL_BUILD_DIR)/vmlinux, /boot/vmlinux, n) > +#endif > > ifdef PTXCONF_KERNEL_TOOL_PERF > @$(call install_copy, kernel, 0, 0, 0755, $(KERNEL_BUILD_DIR)/tools/perf/perf, \ > @@ -324,30 +330,33 @@ endif > # Target-Install-post > # ---------------------------------------------------------------------------- > > -ifdef PTXCONF_IMAGE_KERNEL_INSTALL_EARLY > -$(STATEDIR)/kernel.targetinstall.post: $(IMAGEDIR)/linuximage > -ifdef PTXCONF_IMAGE_KERNEL_LZOP > -$(STATEDIR)/kernel.targetinstall.post: $(IMAGEDIR)/linuximage.lzo > -endif > -endif > - > -$(STATEDIR)/kernel.targetinstall.post: > - @$(call targetinfo) > - > -ifdef PTXCONF_KERNEL_MODULES_INSTALL > - @$(call install_init, kernel-modules) > - @$(call install_fixup, kernel-modules, PRIORITY,optional) > - @$(call install_fixup, kernel-modules, SECTION,base) > - @$(call install_fixup, kernel-modules, AUTHOR,"Robert Schwebel ") > - @$(call install_fixup, kernel-modules, DESCRIPTION,missing) > - > - @$(call install_glob, kernel-modules, 0, 0, -, /lib/modules, *.ko,, n) > - @$(call install_glob, kernel-modules, 0, 0, -, /lib/modules,, *.ko */build */source, n) > - > - @$(call install_finish, kernel-modules) > -endif > - > - @$(call touch) > +# NOTE: this kernel only exists for the userspace kernel tools and a REF_CONFIG. > +# The actual kernels come from the extra kernel-* packages. > +# > +#ifdef PTXCONF_IMAGE_KERNEL_INSTALL_EARLY > +#$(STATEDIR)/kernel.targetinstall.post: $(IMAGEDIR)/linuximage > +#ifdef PTXCONF_IMAGE_KERNEL_LZOP > +#$(STATEDIR)/kernel.targetinstall.post: $(IMAGEDIR)/linuximage.lzo > +#endif > +#endif > +# > +#$(STATEDIR)/kernel.targetinstall.post: > +# @$(call targetinfo) > +# > +#ifdef PTXCONF_KERNEL_MODULES_INSTALL > +# @$(call install_init, kernel-modules) > +# @$(call install_fixup, kernel-modules, PRIORITY,optional) > +# @$(call install_fixup, kernel-modules, SECTION,base) > +# @$(call install_fixup, kernel-modules, AUTHOR,"Robert Schwebel ") > +# @$(call install_fixup, kernel-modules, DESCRIPTION,missing) > +# > +# @$(call install_glob, kernel-modules, 0, 0, -, /lib/modules, *.ko,, n) > +# @$(call install_glob, kernel-modules, 0, 0, -, /lib/modules,, *.ko */build */source, n) > +# > +# @$(call install_finish, kernel-modules) > +#endif > +# > +# @$(call touch) > > # ---------------------------------------------------------------------------- > # Clean > diff --git a/configs/platform-mipsel/platforms/kernel.in b/configs/platform-mipsel/platforms/kernel.in > index 06b6e24a6756..d84d0122ec41 100644 > --- a/configs/platform-mipsel/platforms/kernel.in > +++ b/configs/platform-mipsel/platforms/kernel.in > @@ -23,36 +23,39 @@ config KERNEL_XPKG > Select this symbol if kernel tools or other non kernel > modules are installed. > > -config KERNEL_INSTALL > - bool > - prompt "install kernel into /boot" > - select KERNEL_XPKG > - > -config KERNEL_MODULES > - bool > - default y > - prompt "build kernel-modules" > +comment "NOTE: this kernel only exists for the userspace kernel tools and a REF_CONFIG." > +comment "The actual kernels come from the extra kernel-* packages." > +# > + config KERNEL_INSTALL > + bool > +# prompt "install kernel into /boot" > +# select KERNEL_XPKG > + > + config KERNEL_MODULES > + bool > +# default y > +# prompt "build kernel-modules" > > config KERNEL_MODULES_INSTALL > bool > - default y > - prompt "Install modules into /lib/modules" > - depends on KERNEL_MODULES > - > +# default y > +# prompt "Install modules into /lib/modules" > +# depends on KERNEL_MODULES > +# > config KERNEL_MODULES_SIGN > bool > - depends on KERNEL_MODULES > - select KERNEL_CODE_SIGNING > - select KERNEL_MODULES_INSTALL > - prompt "sign modules" > - help > - If enabled, kernel modules are signed during the install stage with > - the key specified by the code signing provider in the "kernel-modules" > - role. > - > - See the section "Kernel module signing" in the "Daily Work" chapter in > - the PTXdist manual for use cases and more infos about what needs to be > - enabled in the kernel config file. > +# depends on KERNEL_MODULES > +# select KERNEL_CODE_SIGNING > +# select KERNEL_MODULES_INSTALL > +# prompt "sign modules" > +# help > +# If enabled, kernel modules are signed during the install stage with > +# the key specified by the code signing provider in the "kernel-modules" > +# role. > +# > +# See the section "Kernel module signing" in the "Daily Work" chapter in > +# the PTXdist manual for use cases and more infos about what needs to be > +# enabled in the kernel config file. > > config KERNEL_VERSION > prompt "kernel version" > @@ -174,31 +177,31 @@ config KERNEL_IMAGE > default "Image" if KERNEL_IMAGE_RAW > default "simpleImage.${PTXCONF_KERNEL_IMAGE_SIMPLE_TARGET}.elf" if KERNEL_IMAGE_SIMPLE > > -menuconfig KERNEL_DTB > - bool > - prompt "Build device trees " > - > -if KERNEL_DTB > - > -config KERNEL_DTS_PATH > - string "path to source dts file" > - default "${PTXDIST_PLATFORMCONFIG_SUBDIR}/dts:${KERNEL_DIR}/arch/${GENERIC_KERNEL_ARCH}/boot/dts" > - help > - Define path to the dts source file. Multiple directories can be > - specified separated by ':'. A relative path will be expanded relative > - to the workspace and all other layers. Only on of the specified paths > - can be a relative path. > - > -config KERNEL_DTS > - string "source dts file" > - default ".dts" > - help > - Select the dts file to use for the device tree binary > - blob generation. For relative file names KERNEL_DTS_PATH > - is used as a search path for the device tree files specified > - here. Multiple dts files can be specified, separated by spaces. > - > -endif > +#menuconfig KERNEL_DTB > +# bool > +# prompt "Build device trees " > +# > +#if KERNEL_DTB > +# > +#config KERNEL_DTS_PATH > +# string "path to source dts file" > +# default "${PTXDIST_PLATFORMCONFIG_SUBDIR}/dts:${KERNEL_DIR}/arch/${GENERIC_KERNEL_ARCH}/boot/dts" > +# help > +# Define path to the dts source file. Multiple directories can be > +# specified separated by ':'. A relative path will be expanded relative > +# to the workspace and all other layers. Only on of the specified paths > +# can be a relative path. > +# > +#config KERNEL_DTS > +# string "source dts file" > +# default ".dts" > +# help > +# Select the dts file to use for the device tree binary > +# blob generation. For relative file names KERNEL_DTS_PATH > +# is used as a search path for the device tree files specified > +# here. Multiple dts files can be specified, separated by spaces. > +# > +#endif > > config KERNEL_CODE_SIGNING > prompt "use code signing infrastructure" > diff --git a/configs/platform-mipsel/rules/kernel.make b/configs/platform-mipsel/rules/kernel.make > index 9caff677918e..d422ecf1030b 100644 > --- a/configs/platform-mipsel/rules/kernel.make > +++ b/configs/platform-mipsel/rules/kernel.make > @@ -235,10 +235,12 @@ KERNEL_TOOL_IIO_OPTS := \ > > $(STATEDIR)/kernel.compile: > @$(call targetinfo) > - @rm -f \ > - $(KERNEL_BUILD_DIR)/usr/initramfs_data.cpio.* \ > - $(KERNEL_BUILD_DIR)/usr/.initramfs_data.cpio.* > - @$(call world/compile, KERNEL) > +# NOTE: this kernel only exists for the userspace kernel tools and a REF_CONFIG. > +# The actual kernels come from the extra kernel-* packages. > +# @rm -f \ > +# $(KERNEL_BUILD_DIR)/usr/initramfs_data.cpio.* \ > +# $(KERNEL_BUILD_DIR)/usr/.initramfs_data.cpio.* > +# @$(call world/compile, KERNEL) > ifdef PTXCONF_KERNEL_TOOL_PERF > @mkdir -p $(KERNEL_BUILD_DIR)/tools/perf > @$(call compile, KERNEL, $(KERNEL_TOOL_PERF_OPTS)) > @@ -260,10 +262,12 @@ KERNEL_INSTALL_OPT = \ > > $(STATEDIR)/kernel.install: > @$(call targetinfo) > -ifdef PTXCONF_KERNEL_MODULES_INSTALL > - @$(call world/install, KERNEL) > -endif > - @$(call world/dtb, KERNEL) > +# NOTE: this kernel only exists for the userspace kernel tools and a REF_CONFIG. > +# The actual kernels come from the extra kernel-* packages. > +#ifdef PTXCONF_KERNEL_MODULES_INSTALL > +# @$(call world/install, KERNEL) > +#endif > +# @$(call world/dtb, KERNEL) > @$(call touch) > > # ---------------------------------------------------------------------------- > @@ -272,11 +276,13 @@ endif > > $(STATEDIR)/kernel.targetinstall: > @$(call targetinfo) > - > - @$(foreach dtb, $(KERNEL_DTB_FILES), \ > - echo -e "Installing $(dtb) ...\n"$(ptx/nl) \ > - install -D -m0644 $(KERNEL_PKGDIR)/boot/$(dtb) \ > - $(IMAGEDIR)/$(dtb)$(ptx/nl)) > +# NOTE: this kernel only exists for the userspace kernel tools and a REF_CONFIG. > +# The actual kernels come from the extra kernel-* packages. > +# > +# @$(foreach dtb, $(KERNEL_DTB_FILES), \ > +# echo -e "Installing $(dtb) ...\n"$(ptx/nl) \ > +# install -D -m0644 $(KERNEL_PKGDIR)/boot/$(dtb) \ > +# $(IMAGEDIR)/$(dtb)$(ptx/nl)) > > ifdef PTXCONF_KERNEL_XPKG > @$(call install_init, kernel) > @@ -285,20 +291,20 @@ ifdef PTXCONF_KERNEL_XPKG > @$(call install_fixup, kernel, AUTHOR,"Robert Schwebel ") > @$(call install_fixup, kernel, DESCRIPTION,missing) > > - @$(call install_copy, kernel, 0, 0, 0755, /boot); > - > -ifdef PTXCONF_KERNEL_INSTALL > - @$(call install_copy, kernel, 0, 0, 0644, $(KERNEL_IMAGE_PATH_y), /boot/$(KERNEL_IMAGE), n) > - > - @$(foreach dtb, $(KERNEL_DTB_FILES), \ > - $(call install_copy, kernel, 0, 0, 0644, -, \ > - /boot/$(dtb), n)$(ptx/nl)) > -endif > +# @$(call install_copy, kernel, 0, 0, 0755, /boot); > +# > +#ifdef PTXCONF_KERNEL_INSTALL > +# @$(call install_copy, kernel, 0, 0, 0644, $(KERNEL_IMAGE_PATH_y), /boot/$(KERNEL_IMAGE), n) > +# > +# @$(foreach dtb, $(KERNEL_DTB_FILES), \ > +# $(call install_copy, kernel, 0, 0, 0644, -, \ > +# /boot/$(dtb), n)$(ptx/nl)) > +#endif > > # install the ELF kernel image for debugging purpose > -ifdef PTXCONF_KERNEL_VMLINUX > - @$(call install_copy, kernel, 0, 0, 0644, $(KERNEL_BUILD_DIR)/vmlinux, /boot/vmlinux, n) > -endif > +#ifdef PTXCONF_KERNEL_VMLINUX > +# @$(call install_copy, kernel, 0, 0, 0644, $(KERNEL_BUILD_DIR)/vmlinux, /boot/vmlinux, n) > +#endif > > ifdef PTXCONF_KERNEL_TOOL_PERF > @$(call install_copy, kernel, 0, 0, 0755, $(KERNEL_BUILD_DIR)/tools/perf/perf, \ > @@ -324,30 +330,33 @@ endif > # Target-Install-post > # ---------------------------------------------------------------------------- > > -ifdef PTXCONF_IMAGE_KERNEL_INSTALL_EARLY > -$(STATEDIR)/kernel.targetinstall.post: $(IMAGEDIR)/linuximage > -ifdef PTXCONF_IMAGE_KERNEL_LZOP > -$(STATEDIR)/kernel.targetinstall.post: $(IMAGEDIR)/linuximage.lzo > -endif > -endif > - > -$(STATEDIR)/kernel.targetinstall.post: > - @$(call targetinfo) > - > -ifdef PTXCONF_KERNEL_MODULES_INSTALL > - @$(call install_init, kernel-modules) > - @$(call install_fixup, kernel-modules, PRIORITY,optional) > - @$(call install_fixup, kernel-modules, SECTION,base) > - @$(call install_fixup, kernel-modules, AUTHOR,"Robert Schwebel ") > - @$(call install_fixup, kernel-modules, DESCRIPTION,missing) > - > - @$(call install_glob, kernel-modules, 0, 0, -, /lib/modules, *.ko,, n) > - @$(call install_glob, kernel-modules, 0, 0, -, /lib/modules,, *.ko */build */source, n) > - > - @$(call install_finish, kernel-modules) > -endif > - > - @$(call touch) > +# NOTE: this kernel only exists for the userspace kernel tools and a REF_CONFIG. > +# The actual kernels come from the extra kernel-* packages. > +# > +#ifdef PTXCONF_IMAGE_KERNEL_INSTALL_EARLY > +#$(STATEDIR)/kernel.targetinstall.post: $(IMAGEDIR)/linuximage > +#ifdef PTXCONF_IMAGE_KERNEL_LZOP > +#$(STATEDIR)/kernel.targetinstall.post: $(IMAGEDIR)/linuximage.lzo > +#endif > +#endif > +# > +#$(STATEDIR)/kernel.targetinstall.post: > +# @$(call targetinfo) > +# > +#ifdef PTXCONF_KERNEL_MODULES_INSTALL > +# @$(call install_init, kernel-modules) > +# @$(call install_fixup, kernel-modules, PRIORITY,optional) > +# @$(call install_fixup, kernel-modules, SECTION,base) > +# @$(call install_fixup, kernel-modules, AUTHOR,"Robert Schwebel ") > +# @$(call install_fixup, kernel-modules, DESCRIPTION,missing) > +# > +# @$(call install_glob, kernel-modules, 0, 0, -, /lib/modules, *.ko,, n) > +# @$(call install_glob, kernel-modules, 0, 0, -, /lib/modules,, *.ko */build */source, n) > +# > +# @$(call install_finish, kernel-modules) > +#endif > +# > +# @$(call touch) > > # ---------------------------------------------------------------------------- > # Clean > -- > 2.30.2 > > > _______________________________________________ > DistroKit mailing list > DistroKit@pengutronix.de > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ DistroKit mailing list DistroKit@pengutronix.de