Commit 6dc900a3819fd154046bec9f7da8e8fa45a4cc94

Authored by Eric Lee
1 parent 5802febe03
Exists in master

Add i.MX7 solo core support

Showing 2 changed files with 2 additions and 2 deletions Inline Diff

recipes-bsp/u-boot/u-boot-smarcfimx7_2017.03.bb
1 # Copyright (C) 2013-2016 Freescale Semiconductor 1 # Copyright (C) 2013-2016 Freescale Semiconductor
2 # Copyright 2017-2018 NXP 2 # Copyright 2017-2018 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.inc 5 require recipes-bsp/u-boot/u-boot.inc
6 inherit pythonnative 6 inherit pythonnative
7 7
8 PROVIDES += "u-boot" 8 PROVIDES += "u-boot"
9 DEPENDS_append = " python dtc-native" 9 DEPENDS_append = " python dtc-native"
10 10
11 LICENSE = "GPLv2+" 11 LICENSE = "GPLv2+"
12 LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263" 12 LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
13 13
14 UBOOT_SRC ?= "git://git@git.embedian.com/developer/smarc-t335x-uboot.git;protocol=ssh" 14 UBOOT_SRC ?= "git://git@git.embedian.com/developer/smarc-t335x-uboot.git;protocol=ssh"
15 SRCBRANCH = "smarc-imx7_v2017.03_4.9.11_1.0.0_ga" 15 SRCBRANCH = "smarc-imx7_v2017.03_4.9.11_1.0.0_ga"
16 SRC_URI = "${EMB_UBOOT_MIRROR};protocol=ssh;branch=${SRCBRANCH}" 16 SRC_URI = "${EMB_UBOOT_MIRROR};protocol=ssh;branch=${SRCBRANCH}"
17 SRCREV = "2a2968413cc1971ced465c5b2bdce12c3f857d9e" 17 SRCREV = "896d8de8f523020836b761ec3f248e01b5df379c"
18 18
19 S = "${WORKDIR}/git" 19 S = "${WORKDIR}/git"
20 20
21 inherit fsl-u-boot-localversion 21 inherit fsl-u-boot-localversion
22 22
23 LOCALVERSION ?= "-${SRCBRANCH}" 23 LOCALVERSION ?= "-${SRCBRANCH}"
24 24
25 BOOT_TOOLS = "imx-boot-tools" 25 BOOT_TOOLS = "imx-boot-tools"
26 26
27 do_deploy_append_mx8mq () { 27 do_deploy_append_mx8mq () {
28 # Deploy the mkimage, u-boot-nodtb.bin and fsl-imx8mq-XX.dtb for mkimage to generate boot binary 28 # Deploy the mkimage, u-boot-nodtb.bin and fsl-imx8mq-XX.dtb for mkimage to generate boot binary
29 if [ -n "${UBOOT_CONFIG}" ] 29 if [ -n "${UBOOT_CONFIG}" ]
30 then 30 then
31 for config in ${UBOOT_MACHINE}; do 31 for config in ${UBOOT_MACHINE}; do
32 i=$(expr $i + 1); 32 i=$(expr $i + 1);
33 for type in ${UBOOT_CONFIG}; do 33 for type in ${UBOOT_CONFIG}; do
34 j=$(expr $j + 1); 34 j=$(expr $j + 1);
35 if [ $j -eq $i ] 35 if [ $j -eq $i ]
36 then 36 then
37 install -d ${DEPLOYDIR}/${BOOT_TOOLS} 37 install -d ${DEPLOYDIR}/${BOOT_TOOLS}
38 install -m 0777 ${B}/${config}/arch/arm/dts/fsl-smarcimx8mq.dtb ${DEPLOYDIR}/${BOOT_TOOLS} 38 install -m 0777 ${B}/${config}/arch/arm/dts/fsl-smarcimx8mq.dtb ${DEPLOYDIR}/${BOOT_TOOLS}
39 install -m 0777 ${B}/${config}/tools/mkimage ${DEPLOYDIR}/${BOOT_TOOLS}/mkimage_uboot 39 install -m 0777 ${B}/${config}/tools/mkimage ${DEPLOYDIR}/${BOOT_TOOLS}/mkimage_uboot
40 install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS} 40 install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}
41 fi 41 fi
42 done 42 done
43 unset j 43 unset j
44 done 44 done
45 unset i 45 unset i
46 fi 46 fi
47 47
48 } 48 }
49 49
50 PACKAGE_ARCH = "${MACHINE_ARCH}" 50 PACKAGE_ARCH = "${MACHINE_ARCH}"
51 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" 51 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)"
52 52
53 UBOOT_NAME_mx6 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" 53 UBOOT_NAME_mx6 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
54 UBOOT_NAME_mx7 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" 54 UBOOT_NAME_mx7 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
55 UBOOT_NAME_mx8 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" 55 UBOOT_NAME_mx8 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
56 56
recipes-kernel/linux/linux-smarcfimx7_4.9.88.bb
1 # Copyright (C) 2013-2016 Freescale Semiconductor 1 # Copyright (C) 2013-2016 Freescale Semiconductor
2 # Copyright 2017 NXP 2 # Copyright 2017 NXP
3 # Copyright 2018 Embedian, Inc.. 3 # Copyright 2018 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 for SMARC-FiMX7 and supported by Embedian" 6 SUMMARY = "Linux Kernel for SMARC-FiMX7 and supported by Embedian"
7 DESCRIPTION = "Linux Kernel provided and supported by Embedian with focus on \ 7 DESCRIPTION = "Linux Kernel provided and supported by Embedian with focus on \
8 SMARC-FiMX7 Family Computer on Modules." 8 SMARC-FiMX7 Family Computer on Modules."
9 9
10 LICENSE = "GPLv2" 10 LICENSE = "GPLv2"
11 LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" 11 LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
12 12
13 require recipes-kernel/linux/linux-imx.inc 13 require recipes-kernel/linux/linux-imx.inc
14 14
15 DEPENDS += "lzop-native bc-native" 15 DEPENDS += "lzop-native bc-native"
16 16
17 DEFAULT_PREFERENCE = "1" 17 DEFAULT_PREFERENCE = "1"
18 18
19 DO_CONFIG_V7_COPY = "no" 19 DO_CONFIG_V7_COPY = "no"
20 DO_CONFIG_V7_COPY_mx6 = "yes" 20 DO_CONFIG_V7_COPY_mx6 = "yes"
21 DO_CONFIG_V7_COPY_mx7 = "yes" 21 DO_CONFIG_V7_COPY_mx7 = "yes"
22 DO_CONFIG_V7_COPY_mx8 = "no" 22 DO_CONFIG_V7_COPY_mx8 = "no"
23 23
24 SRCBRANCH = "smarc-imx7_4.9.88_2.0.0_ga" 24 SRCBRANCH = "smarc-imx7_4.9.88_2.0.0_ga"
25 25
26 LOCALVERSION = "-${SRCBRANCH}" 26 LOCALVERSION = "-${SRCBRANCH}"
27 DEFCONFIG_mx7 = "smarcfimx7_defconfig" 27 DEFCONFIG_mx7 = "smarcfimx7_defconfig"
28 28
29 KERNEL_SRC ?= "git@git.embedian.com:developer/smarc-fsl-linux-kernel.git;protocol=git" 29 KERNEL_SRC ?= "git@git.embedian.com:developer/smarc-fsl-linux-kernel.git;protocol=git"
30 SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${SRCBRANCH}" 30 SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${SRCBRANCH}"
31 SRCREV = "e1a2ce3a2043a9e74dd1df5555bc970cb800bd81" 31 SRCREV = "bebd676186979b874bd801f47f7473f021b535bb"
32 32
33 S = "${WORKDIR}/git" 33 S = "${WORKDIR}/git"
34 34
35 addtask copy_defconfig after do_unpack before do_preconfigure 35 addtask copy_defconfig after do_unpack before do_preconfigure
36 do_copy_defconfig () { 36 do_copy_defconfig () {
37 install -d ${B} 37 install -d ${B}
38 if [ ${DO_CONFIG_V7_COPY} = "yes" ]; then 38 if [ ${DO_CONFIG_V7_COPY} = "yes" ]; then
39 # copy latest imx_v7_defconfig to use for mx6, mx6ul and mx7 39 # copy latest imx_v7_defconfig to use for mx6, mx6ul and mx7
40 mkdir -p ${B} 40 mkdir -p ${B}
41 cp ${S}/arch/arm/configs/${DEFCONFIG_mx7} ${B}/.config 41 cp ${S}/arch/arm/configs/${DEFCONFIG_mx7} ${B}/.config
42 cp ${S}/arch/arm/configs/${DEFCONFIG_mx7} ${B}/../defconfig 42 cp ${S}/arch/arm/configs/${DEFCONFIG_mx7} ${B}/../defconfig
43 else 43 else
44 # copy latest defconfig to use for mx8 44 # copy latest defconfig to use for mx8
45 mkdir -p ${B} 45 mkdir -p ${B}
46 cp ${S}/arch/arm64/configs/${DEFCONFIG_mx8} ${B}/.config 46 cp ${S}/arch/arm64/configs/${DEFCONFIG_mx8} ${B}/.config
47 cp ${S}/arch/arm64/configs/${DEFCONFIG_mx8} ${B}/../defconfig 47 cp ${S}/arch/arm64/configs/${DEFCONFIG_mx8} ${B}/../defconfig
48 fi 48 fi
49 } 49 }
50 50
51 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" 51 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)"
52 EXTRA_OEMAKE_append_mx6 = " ARCH=arm" 52 EXTRA_OEMAKE_append_mx6 = " ARCH=arm"
53 EXTRA_OEMAKE_append_mx7 = " ARCH=arm" 53 EXTRA_OEMAKE_append_mx7 = " ARCH=arm"
54 EXTRA_OEMAKE_append_mx8 = " ARCH=arm64" 54 EXTRA_OEMAKE_append_mx8 = " ARCH=arm64"
55 55