diff options
Diffstat (limited to 'recipes/x-load/x-load.inc')
-rw-r--r-- | recipes/x-load/x-load.inc | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/recipes/x-load/x-load.inc b/recipes/x-load/x-load.inc index a340958d7e..0699c011ab 100644 --- a/recipes/x-load/x-load.inc +++ b/recipes/x-load/x-load.inc @@ -17,6 +17,7 @@ XLOAD_USB_IMAGE ?= "x-load-usb-${MACHINE}-${PV}-${PR}.bin" XLOAD_USB_SYMLINK ?= "x-load-usb-${MACHINE}.bin" MLO_IMAGE ?= "MLO-${MACHINE}-${PV}-${PR}" MLO_SYMLINK ?= "MLO-${MACHINE}" +MLO_SYMLINK_NOMACHINE ?= "MLO" do_compile () { unset LDFLAGS @@ -27,8 +28,17 @@ do_compile () { oe_runmake } -do_deploy () { +do_install () { signGP ${S}/x-load.bin + + install -d ${D}/boot + install ${S}/x-load.bin.ift ${D}/boot/${MLO_IMAGE} + ln -sf ${MLO_IMAGE} ${D}/boot/${MLO_SYMLINK_NOMACHINE} +} + +FILES_${PN} = "/boot" + +do_deploy () { install -d ${DEPLOY_DIR_IMAGE} install ${S}/x-load.bin.ift ${DEPLOY_DIR_IMAGE}/${XLOAD_IMAGE} install ${S}/x-load.bin ${DEPLOY_DIR_IMAGE}/${XLOAD_USB_IMAGE} @@ -49,4 +59,4 @@ do_deploy () { package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${MLO_SYMLINK} } do_deploy[dirs] = "${S}" -addtask deploy before do_build after do_compile +addtask deploy before do_build after do_install |