linux: move defconfig build commands to kernel common recipe
This commit moves Kernel defconfig build commands into the Linux common recipe. Signed-off-by: Mike Engel <Mike.Engel@digi.com>
This commit is contained in:
parent
652341f3b1
commit
23d307ca58
|
|
@ -16,4 +16,22 @@ LINUX_GIT_URI ?= "${@oe.utils.conditional('DIGI_INTERNAL_GIT', '1' , \
|
|||
SRC_URI = "${LINUX_GIT_URI};branch=${SRCBRANCH}"
|
||||
SRC_URI_stmp32mpcommon = "${LINUX_GIT_URI};branch=${SRCBRANCH}"
|
||||
|
||||
# A user can provide his own kernel 'defconfig' file by:
|
||||
# - setting the variable KERNEL_DEFCONFIG to a custom kernel configuration file
|
||||
# inside the kernel repository.
|
||||
# - setting the variable KERNEL_DEFCONFIG to a kernel configuration file using
|
||||
# the full path to the file.
|
||||
# - clearing the variable KERNEL_DEFCONFIG and providing a kernel configuration
|
||||
# file in the layer (in this case the file must be named 'defconfig').
|
||||
# Otherwise the default platform's kernel configuration file will be taken from
|
||||
# the Linux source code tree.
|
||||
do_copy_defconfig[vardeps] += "KERNEL_DEFCONFIG"
|
||||
do_copy_defconfig[dirs] = "${S}"
|
||||
do_copy_defconfig () {
|
||||
if [ -n "${KERNEL_DEFCONFIG}" ]; then
|
||||
cp -f ${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig
|
||||
fi
|
||||
}
|
||||
addtask copy_defconfig after do_patch before do_kernel_localversion
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
|
|
|||
|
|
@ -22,24 +22,6 @@ FILES_${KERNEL_PACKAGE_NAME}-image += "/boot/config-${KERNEL_VERSION}"
|
|||
# Don't include kernels in standard images
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base = ""
|
||||
|
||||
# A user can provide his own kernel 'defconfig' file by:
|
||||
# - setting the variable KERNEL_DEFCONFIG to a custom kernel configuration file
|
||||
# inside the kernel repository.
|
||||
# - setting the variable KERNEL_DEFCONFIG to a kernel configuration file using
|
||||
# the full path to the file.
|
||||
# - clearing the variable KERNEL_DEFCONFIG and providing a kernel configuration
|
||||
# file in the layer (in this case the file must be named 'defconfig').
|
||||
# Otherwise the default platform's kernel configuration file will be taken from
|
||||
# the Linux source code tree.
|
||||
do_copy_defconfig[vardeps] += "KERNEL_DEFCONFIG"
|
||||
do_copy_defconfig[dirs] = "${S}"
|
||||
do_copy_defconfig () {
|
||||
if [ -n "${KERNEL_DEFCONFIG}" ]; then
|
||||
cp -f ${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig
|
||||
fi
|
||||
}
|
||||
addtask copy_defconfig after do_patch before do_kernel_localversion
|
||||
|
||||
# Apply configuration fragments
|
||||
do_configure_append() {
|
||||
# Only accept fragments ending in .cfg. If the fragments contain
|
||||
|
|
|
|||
Loading…
Reference in New Issue