summaryrefslogtreecommitdiffstats
path: root/dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc
diff options
context:
space:
mode:
Diffstat (limited to 'dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc')
-rw-r--r--dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc53
1 files changed, 53 insertions, 0 deletions
diff --git a/dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc b/dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc
new file mode 100644
index 000000000..95f05eab6
--- /dev/null
+++ b/dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc
@@ -0,0 +1,53 @@
1INHIBIT_DEFAULT_DEPS = "1"
2DEPENDS = "gcc-arm-none-eabi-native"
3
4inherit deploy
5
6PACKAGE_ARCH = "${MACHINE_ARCH}"
7
8OEI_CONFIGS ?= "UNDEFINED"
9OEI_CORE ?= "UNDEFINED"
10OEI_SOC ?= "UNDEFINED"
11OEI_BOARD ?= "UNDEFINED"
12OEI_DDRCONFIG ?= ""
13
14LDFLAGS[unexport] = "1"
15
16EXTRA_OEMAKE = "\
17 board=${OEI_BOARD} \
18 DEBUG=1 \
19 OEI_CROSS_COMPILE=arm-none-eabi-"
20
21EXTRA_OEMAKE:append:mx95-generic-bsp = " r=${IMX_SOC_REV}"
22EXTRA_OEMAKE:append = " ${@' DDR_CONFIG=${OEI_DDRCONFIG}' if d.getVar('OEI_DDRCONFIG') else ''}"
23
24do_configure() {
25 for oei_config in ${OEI_CONFIGS}; do
26 oe_runmake clean oei=$oei_config
27 done
28}
29
30do_compile() {
31 for oei_config in ${OEI_CONFIGS}; do
32 oe_runmake oei=$oei_config
33 done
34}
35
36do_install() {
37 install -d ${D}/firmware
38 for oei_config in ${OEI_CONFIGS}; do
39 install -m 0644 ${B}/build/${OEI_BOARD}/$oei_config/oei-*.bin ${D}/firmware
40 done
41}
42
43addtask deploy after do_install
44do_deploy() {
45 cp -rf ${D}/firmware/* ${DEPLOYDIR}/
46}
47
48FILES:${PN} = "/firmware"
49SYSROOT_DIRS += "/firmware"
50
51PROVIDES += "virtual/imx-oei"
52
53COMPATIBLE_MACHINE = "(mx95-generic-bsp)"