Commit d60e2320d9bac40a1db67c6551c2d158723df7df
1 parent
0d7173850f
Exists in
8mq_5.4.24_2.1.0_zeus
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-2019 NXP | 2 | # Copyright 2017-2019 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-imx_v2020.04_5.4.24_2.1.0" | 18 | SRCBRANCH = "smarc_8mq-imx_v2020.04_5.4.24_2.1.0" |
19 | SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}" | 19 | SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}" |
20 | SRCREV = "7a9e88c57f00dde6fae37291e4929e966372adb9" | 20 | SRCREV = "3d719eac6867f6f282b8aefd712cd9bacbf3b668" |
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 ?= "-${SRCBRANCH}" | 26 | LOCALVERSION ?= "-${SRCBRANCH}" |
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 the mkimage, u-boot-nodtb.bin and fsl-imx8mq-XX.dtb for mkimage to generate boot binary | 31 | # Deploy the mkimage, u-boot-nodtb.bin and fsl-imx8mq-XX.dtb for mkimage to generate boot binary |
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}-${UBOOT_CONFIG} | 42 | install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${UBOOT_CONFIG} |
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.4.bb
1 | # Copyright (C) 2013-2016 Freescale Semiconductor | 1 | # Copyright (C) 2013-2016 Freescale Semiconductor |
2 | # Copyright 2017-2019 NXP | 2 | # Copyright 2017-2019 NXP |
3 | # Copyright 2018-2019 Embedian, Inc. | 3 | # Copyright 2018-2019 Embedian, Inc. |
4 | # Released under the MIT license (see COPYING.MIT for the terms) | 4 | # Released under the MIT license (see COPYING.MIT for the terms) |
5 | 5 | ||
6 | SUMMARY = "Linux kernel provided and supported by Embedian" | 6 | SUMMARY = "Linux kernel provided and supported by Embedian" |
7 | DESCRIPTION = "Linux kernel provided and supported by Embedian (based on the kernel imx_5.4.24_2.1.0 provided by NXP) \ | 7 | DESCRIPTION = "Linux kernel provided and supported by Embedian (based on the kernel imx_5.4.24_2.1.0 provided by NXP) \ |
8 | with focus on i.MX Family SOMs. It includes support for many IPs such as GPU, VPU and IPU." | 8 | with focus on i.MX Family SOMs. It includes support for many IPs such as GPU, VPU and IPU." |
9 | 9 | ||
10 | require recipes-kernel/linux/linux-imx.inc | 10 | require recipes-kernel/linux/linux-imx.inc |
11 | 11 | ||
12 | LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" | 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" |
13 | 13 | ||
14 | DEPENDS += "lzop-native bc-native" | 14 | DEPENDS += "lzop-native bc-native" |
15 | 15 | ||
16 | SRCBRANCH = "smarc_8mq_imx_5.4.24_2.1.0" | 16 | SRCBRANCH = "smarc_8mq_imx_5.4.24_2.1.0" |
17 | LOCALVERSION = "-2.1.0" | 17 | LOCALVERSION = "-2.1.0" |
18 | KERNEL_DEFCONFIG = "${S}/arch/arm64/configs/smarcimx8mq_defconfig" | 18 | KERNEL_DEFCONFIG = "${S}/arch/arm64/configs/smarcimx8mq_defconfig" |
19 | 19 | ||
20 | KERNEL_SRC ?= "git@git.embedian.com:developer/smarc-fsl-linux-kernel.git;protocol=git" | 20 | KERNEL_SRC ?= "git@git.embedian.com:developer/smarc-fsl-linux-kernel.git;protocol=git" |
21 | SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${SRCBRANCH}" | 21 | SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${SRCBRANCH}" |
22 | SRCREV = "8d99065f6451e0a81311a6a13f9a606f43a12f61" | 22 | SRCREV = "30eca5d63c4bbc8f3b30ed6af714ea30819cee3e" |
23 | 23 | ||
24 | S = "${WORKDIR}/git" | 24 | S = "${WORKDIR}/git" |
25 | 25 | ||
26 | FILES_${KERNEL_PACKAGE_NAME}-base += "${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin.modinfo " | 26 | FILES_${KERNEL_PACKAGE_NAME}-base += "${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin.modinfo " |
27 | 27 | ||
28 | KERNEL_CONFIG_COMMAND = "oe_runmake_call -C ${S} CC="${KERNEL_CC}" O=${B} olddefconfig" | 28 | KERNEL_CONFIG_COMMAND = "oe_runmake_call -C ${S} CC="${KERNEL_CC}" O=${B} olddefconfig" |
29 | 29 | ||
30 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | 30 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
31 | 31 | ||
32 | DEFAULT_PREFERENCE = "1" | 32 | DEFAULT_PREFERENCE = "1" |
33 | 33 | ||
34 | addtask copy_defconfig after do_patch before do_preconfigure | 34 | addtask copy_defconfig after do_patch before do_preconfigure |
35 | 35 | ||
36 | do_copy_defconfig () { | 36 | do_copy_defconfig () { |
37 | install -d ${B} | 37 | install -d ${B} |
38 | # copy kernel defconfig smarcimx8mq_defconfig to use for mx8 | 38 | # copy kernel defconfig smarcimx8mq_defconfig to use for mx8 |
39 | mkdir -p ${B} | 39 | mkdir -p ${B} |
40 | cp ${KERNEL_DEFCONFIG} ${B}/.config | 40 | cp ${KERNEL_DEFCONFIG} ${B}/.config |
41 | cp ${KERNEL_DEFCONFIG} ${B}/../defconfig | 41 | cp ${KERNEL_DEFCONFIG} ${B}/../defconfig |
42 | } | 42 | } |
43 | 43 | ||
44 | DELTA_KERNEL_DEFCONFIG ?= "" | 44 | DELTA_KERNEL_DEFCONFIG ?= "" |
45 | #DELTA_KERNEL_DEFCONFIG_prepend_mx8 = "sdk_imx.config " | 45 | #DELTA_KERNEL_DEFCONFIG_prepend_mx8 = "sdk_imx.config " |
46 | 46 | ||
47 | do_merge_delta_config[dirs] = "${B}" | 47 | do_merge_delta_config[dirs] = "${B}" |
48 | do_merge_delta_config() { | 48 | do_merge_delta_config() { |
49 | for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do | 49 | for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do |
50 | if [ -f ${S}/arch/${ARCH}/configs/${deltacfg} ]; then | 50 | if [ -f ${S}/arch/${ARCH}/configs/${deltacfg} ]; then |
51 | ${KERNEL_CONFIG_COMMAND} | 51 | ${KERNEL_CONFIG_COMMAND} |
52 | oe_runmake_call -C ${S} CC="${KERNEL_CC}" O=${B} ${deltacfg} | 52 | oe_runmake_call -C ${S} CC="${KERNEL_CC}" O=${B} ${deltacfg} |
53 | elif [ -f "${WORKDIR}/${deltacfg}" ]; then | 53 | elif [ -f "${WORKDIR}/${deltacfg}" ]; then |
54 | ${S}/scripts/kconfig/merge_config.sh -m .config ${WORKDIR}/${deltacfg} | 54 | ${S}/scripts/kconfig/merge_config.sh -m .config ${WORKDIR}/${deltacfg} |
55 | elif [ -f "${deltacfg}" ]; then | 55 | elif [ -f "${deltacfg}" ]; then |
56 | ${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg} | 56 | ${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg} |
57 | fi | 57 | fi |
58 | done | 58 | done |
59 | cp .config ${WORKDIR}/defconfig | 59 | cp .config ${WORKDIR}/defconfig |
60 | } | 60 | } |
61 | addtask merge_delta_config before do_preconfigure after do_copy_defconfig | 61 | addtask merge_delta_config before do_preconfigure after do_copy_defconfig |
62 | 62 | ||
63 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | 63 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" |
64 | 64 |