summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/x-load/x-load.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/x-load/x-load.inc')
-rw-r--r--meta/recipes-bsp/x-load/x-load.inc40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-bsp/x-load/x-load.inc b/meta/recipes-bsp/x-load/x-load.inc
new file mode 100644
index 0000000..05d5ff0
--- /dev/null
+++ b/meta/recipes-bsp/x-load/x-load.inc
@@ -0,0 +1,40 @@
1SUMMARY = "First level bootloader for OMAP SoCs"
2SECTION = "bootloaders"
3LICENSE = "GPL"
4
5inherit deploy
6
7DEPENDS = ""
8
9PARALLEL_MAKE=""
10
11EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
12
13XLOAD_MACHINE ?= "${MACHINE}_config"
14
15XLOAD_IMAGE ?= "x-load-${MACHINE}-${PV}-${PR}.bin.ift"
16XLOAD_SYMLINK ?= "x-load-${MACHINE}.bin.ift"
17MLO_IMAGE ?= "MLO-${MACHINE}-${PV}-${PR}"
18MLO_SYMLINK ?= "MLO-${MACHINE}"
19
20do_compile () {
21 unset LDFLAGS
22 unset CFLAGS
23 unset CPPFLAGS
24 oe_runmake distclean
25 oe_runmake ${XLOAD_MACHINE}
26 oe_runmake ift
27}
28
29do_deploy () {
30 install ${S}/x-load.bin.ift ${DEPLOYDIR}/${XLOAD_IMAGE}
31 install ${S}/x-load.bin.ift ${DEPLOYDIR}/${MLO_IMAGE}
32
33 cd ${DEPLOYDIR}
34 rm -f ${XLOAD_SYMLINK}
35 ln -sf ${XLOAD_IMAGE} ${XLOAD_SYMLINK}
36 rm -f ${MLO_SYMLINK}
37 ln -sf ${MLO_IMAGE} ${MLO_SYMLINK}
38}
39addtask deploy before do_build after do_compile
40