commit | author | age
|
849fbd
|
1 |
require recipes-kernel/linux/linux-yocto.inc |
G |
2 |
|
|
3 |
FILESEXTRAPATHS:prepend := "${THISDIR}/files:" |
|
4 |
SRC_URI += " file://linux-imx-lf-6.1.36-2.1.0.patch " |
|
5 |
PATCHTOOL = "patch" |
|
6 |
|
|
7 |
KERNEL_DANGLING_FEATURES_WARN_ONLY="1" |
ad923e
|
8 |
KERNEL_DTC_FLAGS = "-@" |
G |
9 |
KERNEL_DTOVERLAY ?= "" |
849fbd
|
10 |
|
G |
11 |
do_copy_defconfig:append() { |
ad923e
|
12 |
if [ ${DO_CONFIG_V7_COPY} = "yes" ]; then |
G |
13 |
cp ${S}/arch/arm/configs/${MACHINE}_defconfig ${WORKDIR}/defconfig |
|
14 |
cp ${S}/arch/arm/configs/${MACHINE}_defconfig ${B}/.config |
|
15 |
else |
|
16 |
cp ${S}/arch/arm64/configs/${MACHINE}_defconfig ${WORKDIR}/defconfig |
|
17 |
cp ${S}/arch/arm64/configs/${MACHINE}_defconfig ${B}/.config |
|
18 |
fi |
|
19 |
} |
|
20 |
|
|
21 |
do_compile:append() { |
|
22 |
if [ -n "${KERNEL_DTC_FLAGS}" ]; then |
|
23 |
export DTC_FLAGS="${KERNEL_DTC_FLAGS}" |
|
24 |
fi |
|
25 |
|
|
26 |
for dtbf in ${KERNEL_DTOVERLAY}; do |
|
27 |
dtb=`normalize_dtb "$dtbf"` |
|
28 |
oe_runmake $dtb CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS} |
|
29 |
done |
|
30 |
} |
|
31 |
|
|
32 |
do_deploy:append(){ |
|
33 |
install -d ${DEPLOYDIR}/overlays |
|
34 |
|
|
35 |
if [ ${DO_CONFIG_V7_COPY} = "yes" ]; then |
|
36 |
cp ${B}/arch/arm/boot/dts/${MACHINE}/*.dtbo ${DEPLOYDIR}/overlays |
|
37 |
# else |
|
38 |
# cp ${B}/arch/arm64/boot/dts/${MACHINE}/*.dtbo ${DEPLOYDIR}/overlays |
|
39 |
fi |
849fbd
|
40 |
} |