Commit 4791f7fe55d7de7e8e79451ec0cd75cb618dfa1f

Authored by Eric Lee
1 parent b4232d91f1

Fix Linux kernel commit head

Showing 1 changed file with 1 additions and 1 deletions Inline Diff

recipes-kernel/linux/linux-smarcimx8mq_5.10.bb
1 # Copyright (C) 2013-2016 Freescale Semiconductor 1 # Copyright (C) 2013-2016 Freescale Semiconductor
2 # Copyright 2017-2021 NXP 2 # Copyright 2017-2021 NXP
3 # Released under the MIT license (see COPYING.MIT for the terms) 3 # Released under the MIT license (see COPYING.MIT for the terms)
4 4
5 SUMMARY = "Linux Kernel provided and supported by NXP" 5 SUMMARY = "Linux Kernel provided and supported by NXP"
6 DESCRIPTION = "Linux Kernel provided and supported by NXP with focus on \ 6 DESCRIPTION = "Linux Kernel provided and supported by NXP with focus on \
7 i.MX Family Reference Boards. It includes support for many IPs such as GPU, VPU and IPU." 7 i.MX Family Reference Boards. It includes support for many IPs such as GPU, VPU and IPU."
8 8
9 require recipes-kernel/linux/linux-imx.inc 9 require recipes-kernel/linux/linux-imx.inc
10 10
11 LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" 11 LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
12 12
13 DEPENDS += "lzop-native bc-native" 13 DEPENDS += "lzop-native bc-native"
14 14
15 SRCBRANCH = "smarc_8mq_lf-5.10.y" 15 SRCBRANCH = "smarc_8mq_lf-5.10.y"
16 LOCALVERSION = "-1.0.0" 16 LOCALVERSION = "-1.0.0"
17 KERNEL_DEFCONFIG = "${S}/arch/arm64/configs/smarcimx8mq_defconfig" 17 KERNEL_DEFCONFIG = "${S}/arch/arm64/configs/smarcimx8mq_defconfig"
18 18
19 KERNEL_SRC ?= "git@git.embedian.com:developer/smarc-fsl-linux-kernel.git;protocol=git" 19 KERNEL_SRC ?= "git@git.embedian.com:developer/smarc-fsl-linux-kernel.git;protocol=git"
20 SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${SRCBRANCH}" 20 SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${SRCBRANCH}"
21 SRCREV = "30eca5d63c4bbc8f3b30ed6af714ea30819cee3e" 21 SRCREV = "c4aa46bd382d293fac44fd4bee31f698ebe7b940"
22 22
23 LINUX_VERSION = "5.10.9" 23 LINUX_VERSION = "5.10.9"
24 24
25 FILES_${KERNEL_PACKAGE_NAME}-base += "${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin.modinfo " 25 FILES_${KERNEL_PACKAGE_NAME}-base += "${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin.modinfo "
26 26
27 KERNEL_CONFIG_COMMAND = "oe_runmake_call -C ${S} CC="${KERNEL_CC}" O=${B} olddefconfig" 27 KERNEL_CONFIG_COMMAND = "oe_runmake_call -C ${S} CC="${KERNEL_CC}" O=${B} olddefconfig"
28 28
29 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" 29 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
30 30
31 DEFAULT_PREFERENCE = "1" 31 DEFAULT_PREFERENCE = "1"
32 32
33 DO_CONFIG_V7_COPY = "no" 33 DO_CONFIG_V7_COPY = "no"
34 DO_CONFIG_V7_COPY_mx6 = "yes" 34 DO_CONFIG_V7_COPY_mx6 = "yes"
35 DO_CONFIG_V7_COPY_mx7 = "yes" 35 DO_CONFIG_V7_COPY_mx7 = "yes"
36 DO_CONFIG_V7_COPY_mx8 = "no" 36 DO_CONFIG_V7_COPY_mx8 = "no"
37 37
38 # Add setting for LF Mainline build 38 # Add setting for LF Mainline build
39 IMX_KERNEL_CONFIG_AARCH32 = "imx_v7_defconfig" 39 IMX_KERNEL_CONFIG_AARCH32 = "imx_v7_defconfig"
40 IMX_KERNEL_CONFIG_AARCH64 = "smarcimx8mq_defconfig" 40 IMX_KERNEL_CONFIG_AARCH64 = "smarcimx8mq_defconfig"
41 KBUILD_DEFCONFIG ?= "" 41 KBUILD_DEFCONFIG ?= ""
42 KBUILD_DEFCONFIG_mx6= "${IMX_KERNEL_CONFIG_AARCH32}" 42 KBUILD_DEFCONFIG_mx6= "${IMX_KERNEL_CONFIG_AARCH32}"
43 KBUILD_DEFCONFIG_mx7= "${IMX_KERNEL_CONFIG_AARCH32}" 43 KBUILD_DEFCONFIG_mx7= "${IMX_KERNEL_CONFIG_AARCH32}"
44 KBUILD_DEFCONFIG_mx8= "${IMX_KERNEL_CONFIG_AARCH64}" 44 KBUILD_DEFCONFIG_mx8= "${IMX_KERNEL_CONFIG_AARCH64}"
45 45
46 46
47 # Use a verbatim copy of the defconfig from the linux-imx repo. 47 # Use a verbatim copy of the defconfig from the linux-imx repo.
48 # IMPORTANT: This task effectively disables kernel config fragments 48 # IMPORTANT: This task effectively disables kernel config fragments
49 # since the config fragments applied in do_kernel_configme are replaced. 49 # since the config fragments applied in do_kernel_configme are replaced.
50 addtask copy_defconfig after do_kernel_configme before do_preconfigure 50 addtask copy_defconfig after do_kernel_configme before do_preconfigure
51 do_copy_defconfig () { 51 do_copy_defconfig () {
52 install -d ${B} 52 install -d ${B}
53 if [ ${DO_CONFIG_V7_COPY} = "yes" ]; then 53 if [ ${DO_CONFIG_V7_COPY} = "yes" ]; then
54 # copy latest IMX_KERNEL_CONFIG_AARCH32 to use for mx6, mx6ul and mx7 54 # copy latest IMX_KERNEL_CONFIG_AARCH32 to use for mx6, mx6ul and mx7
55 mkdir -p ${B} 55 mkdir -p ${B}
56 cp ${S}/arch/arm/configs/${IMX_KERNEL_CONFIG_AARCH32} ${B}/.config 56 cp ${S}/arch/arm/configs/${IMX_KERNEL_CONFIG_AARCH32} ${B}/.config
57 else 57 else
58 # copy latest IMX_KERNEL_CONFIG_AARCH64 to use for mx8 58 # copy latest IMX_KERNEL_CONFIG_AARCH64 to use for mx8
59 mkdir -p ${B} 59 mkdir -p ${B}
60 cp ${S}/arch/arm64/configs/${IMX_KERNEL_CONFIG_AARCH64} ${B}/.config 60 cp ${S}/arch/arm64/configs/${IMX_KERNEL_CONFIG_AARCH64} ${B}/.config
61 fi 61 fi
62 } 62 }
63 63
64 DELTA_KERNEL_DEFCONFIG ?= "" 64 DELTA_KERNEL_DEFCONFIG ?= ""
65 #DELTA_KERNEL_DEFCONFIG_mx8 = "imx.config" 65 #DELTA_KERNEL_DEFCONFIG_mx8 = "imx.config"
66 66
67 do_merge_delta_config[dirs] = "${B}" 67 do_merge_delta_config[dirs] = "${B}"
68 do_merge_delta_config[depends] += " \ 68 do_merge_delta_config[depends] += " \
69 flex-native:do_populate_sysroot \ 69 flex-native:do_populate_sysroot \
70 bison-native:do_populate_sysroot \ 70 bison-native:do_populate_sysroot \
71 " 71 "
72 do_merge_delta_config() { 72 do_merge_delta_config() {
73 for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do 73 for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do
74 if [ -f ${S}/arch/${ARCH}/configs/${deltacfg} ]; then 74 if [ -f ${S}/arch/${ARCH}/configs/${deltacfg} ]; then
75 ${KERNEL_CONFIG_COMMAND} 75 ${KERNEL_CONFIG_COMMAND}
76 oe_runmake_call -C ${S} CC="${KERNEL_CC}" O=${B} ${deltacfg} 76 oe_runmake_call -C ${S} CC="${KERNEL_CC}" O=${B} ${deltacfg}
77 elif [ -f "${WORKDIR}/${deltacfg}" ]; then 77 elif [ -f "${WORKDIR}/${deltacfg}" ]; then
78 ${S}/scripts/kconfig/merge_config.sh -m .config ${WORKDIR}/${deltacfg} 78 ${S}/scripts/kconfig/merge_config.sh -m .config ${WORKDIR}/${deltacfg}
79 elif [ -f "${deltacfg}" ]; then 79 elif [ -f "${deltacfg}" ]; then
80 ${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg} 80 ${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg}
81 fi 81 fi
82 done 82 done
83 cp .config ${WORKDIR}/defconfig 83 cp .config ${WORKDIR}/defconfig
84 } 84 }
85 addtask merge_delta_config before do_preconfigure after do_copy_defconfig 85 addtask merge_delta_config before do_preconfigure after do_copy_defconfig
86 86
87 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" 87 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)"
88 88