Commit b4232d91f146cffaa55a6031dc68c374a1c4cacb
1 parent
326c5b60fa
Exists in
8mq_5.10.9_1.0.0_gatesgarth
Make changes to hardware revision 00F0: Replace Ethernet PHY by RTL8211FD-CG
Showing 2 changed files with 2 additions and 2 deletions Inline Diff
recipes-bsp/u-boot/u-boot-smarcimx8mq_2020.04.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 | 3 | ||
4 | DESCRIPTION = "i.MX U-Boot suppporting i.MX reference boards." | 4 | DESCRIPTION = "i.MX U-Boot suppporting i.MX reference boards." |
5 | require recipes-bsp/u-boot/u-boot-common.inc | 5 | require recipes-bsp/u-boot/u-boot-common.inc |
6 | require recipes-bsp/u-boot/u-boot.inc | 6 | require recipes-bsp/u-boot/u-boot.inc |
7 | inherit pythonnative | 7 | inherit pythonnative |
8 | 8 | ||
9 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | 9 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" |
10 | 10 | ||
11 | PROVIDES += "u-boot" | 11 | PROVIDES += "u-boot" |
12 | DEPENDS_append = " dtc-native" | 12 | DEPENDS_append = " dtc-native" |
13 | 13 | ||
14 | LICENSE = "GPLv2+" | 14 | LICENSE = "GPLv2+" |
15 | LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 15 | LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
16 | 16 | ||
17 | UBOOT_SRC ?= "${EMB_UBOOT_MIRROR};protocol=ssh" | 17 | UBOOT_SRC ?= "${EMB_UBOOT_MIRROR};protocol=ssh" |
18 | SRCBRANCH = "smarc_8mq_lf_v2020.04" | 18 | SRCBRANCH = "smarc_8mq_lf_v2020.04" |
19 | SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}" | 19 | SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}" |
20 | SRCREV = "312ec620f3557f27301ec51dec03d4c4154d161e" | 20 | SRCREV = "3f74d2934ffabab54e83ef0afcdb9dfb0a31a3da" |
21 | 21 | ||
22 | S = "${WORKDIR}/git" | 22 | S = "${WORKDIR}/git" |
23 | 23 | ||
24 | inherit fsl-u-boot-localversion | 24 | inherit fsl-u-boot-localversion |
25 | 25 | ||
26 | LOCALVERSION ?= "-5.10.9-1.0.0" | 26 | LOCALVERSION ?= "-5.10.9-1.0.0" |
27 | 27 | ||
28 | BOOT_TOOLS = "imx-boot-tools" | 28 | BOOT_TOOLS = "imx-boot-tools" |
29 | 29 | ||
30 | do_deploy_append_mx8m () { | 30 | do_deploy_append_mx8m () { |
31 | # Deploy u-boot-nodtb.bin and fsl-imx8mq-XX.dtb, to be packaged in boot binary by imx-boot | 31 | # Deploy u-boot-nodtb.bin and fsl-imx8mq-XX.dtb, to be packaged in boot binary by imx-boot |
32 | if [ -n "${UBOOT_CONFIG}" ] | 32 | if [ -n "${UBOOT_CONFIG}" ] |
33 | then | 33 | then |
34 | for config in ${UBOOT_MACHINE}; do | 34 | for config in ${UBOOT_MACHINE}; do |
35 | i=$(expr $i + 1); | 35 | i=$(expr $i + 1); |
36 | for type in ${UBOOT_CONFIG}; do | 36 | for type in ${UBOOT_CONFIG}; do |
37 | j=$(expr $j + 1); | 37 | j=$(expr $j + 1); |
38 | if [ $j -eq $i ] | 38 | if [ $j -eq $i ] |
39 | then | 39 | then |
40 | install -d ${DEPLOYDIR}/${BOOT_TOOLS} | 40 | install -d ${DEPLOYDIR}/${BOOT_TOOLS} |
41 | install -m 0777 ${B}/${config}/arch/arm/dts/${UBOOT_DTB_NAME} ${DEPLOYDIR}/${BOOT_TOOLS} | 41 | install -m 0777 ${B}/${config}/arch/arm/dts/${UBOOT_DTB_NAME} ${DEPLOYDIR}/${BOOT_TOOLS} |
42 | install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${type} | 42 | install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${type} |
43 | fi | 43 | fi |
44 | done | 44 | done |
45 | unset j | 45 | unset j |
46 | done | 46 | done |
47 | unset i | 47 | unset i |
48 | fi | 48 | fi |
49 | 49 | ||
50 | } | 50 | } |
51 | 51 | ||
52 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 52 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
53 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | 53 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" |
54 | 54 | ||
55 | UBOOT_NAME_mx6 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" | 55 | UBOOT_NAME_mx6 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" |
56 | UBOOT_NAME_mx7 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" | 56 | UBOOT_NAME_mx7 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" |
57 | UBOOT_NAME_mx8 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" | 57 | UBOOT_NAME_mx8 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" |
58 | 58 |
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 = "cc6b6434fb239ffa20eb087bdeb5070282b50810" | 21 | SRCREV = "30eca5d63c4bbc8f3b30ed6af714ea30819cee3e" |
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 |