Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
58
sources/meta-freescale/recipes-kernel/linux/linux-qoriq.inc
Normal file
58
sources/meta-freescale/recipes-kernel/linux/linux-qoriq.inc
Normal file
@@ -0,0 +1,58 @@
|
||||
inherit kernel qoriq_build_64bit_kernel siteinfo
|
||||
inherit fsl-kernel-localversion
|
||||
|
||||
SUMMARY = "Linux Kernel for NXP QorIQ platforms"
|
||||
SECTION = "kernel"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
DEPENDS:append = " libgcc"
|
||||
# not put Images into /boot of rootfs, install kernel-image if needed
|
||||
RRECOMMENDS:${KERNEL_PACKAGE_NAME}-base = ""
|
||||
|
||||
KERNEL_CC:append = " ${TOOLCHAIN_OPTIONS}"
|
||||
KERNEL_LD:append = " ${TOOLCHAIN_OPTIONS}"
|
||||
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
|
||||
|
||||
ZIMAGE_BASE_NAME = "zImage-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
|
||||
ZIMAGE_BASE_NAME[vardepsexclude] = "DATETIME"
|
||||
|
||||
# Set the PV to the correct kernel version to satisfy the kernel version sanity check
|
||||
PV = "${LINUX_VERSION}+git${SRCPV}"
|
||||
|
||||
SCMVERSION ?= "y"
|
||||
LOCALVERSION = ""
|
||||
DELTA_KERNEL_DEFCONFIG ?= ""
|
||||
DELTA_KERNEL_DEFCONFIG:prepend:qoriq-arm64 = "lsdk.config "
|
||||
DELTA_KERNEL_DEFCONFIG:prepend:qoriq-arm = "multi_v7_lpae.config lsdk.config "
|
||||
|
||||
do_merge_delta_config[depends] += "virtual/${TARGET_PREFIX}gcc:do_populate_sysroot bison-native:do_populate_sysroot"
|
||||
do_merge_delta_config[dirs] = "${B}"
|
||||
|
||||
do_merge_delta_config() {
|
||||
# create config with make config
|
||||
oe_runmake -C ${S} O=${B} ${KERNEL_DEFCONFIG}
|
||||
|
||||
# check if bigendian is enabled
|
||||
if [ "${SITEINFO_ENDIANNESS}" = "be" ]; then
|
||||
echo "CONFIG_CPU_BIG_ENDIAN=y" >> .config
|
||||
echo "CONFIG_MTD_CFI_BE_BYTE_SWAP=y" >> .config
|
||||
fi
|
||||
|
||||
# add config fragments
|
||||
for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do
|
||||
if [ -f ${S}/arch/${ARCH}/configs/${deltacfg} ]; then
|
||||
oe_runmake -C ${S} O=${B} ${deltacfg}
|
||||
elif [ -f "${WORKDIR}/${deltacfg}" ]; then
|
||||
${S}/scripts/kconfig/merge_config.sh -m .config ${WORKDIR}/${deltacfg}
|
||||
elif [ -f "${deltacfg}" ]; then
|
||||
${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg}
|
||||
fi
|
||||
done
|
||||
cp .config ${WORKDIR}/defconfig
|
||||
}
|
||||
addtask merge_delta_config before do_kernel_localversion after do_patch
|
||||
|
||||
FILES:${KERNEL_PACKAGE_NAME}-image += "/boot/zImage*"
|
||||
COMPATIBLE_MACHINE = "(qoriq)"
|
||||
Reference in New Issue
Block a user