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