blob: 71e22251b4f820e5bda828113099d4db53a2cb68 [file] [log] [blame]
Tim Lee7e9914f2022-11-07 09:47:20 +08001SUMMARY = "Primary bootloader for NPCM8XX (Arbel) devices"
2DESCRIPTION = "Primary bootloader for NPCM8XX (Arbel) devices"
3HOMEPAGE = "https://github.com/Nuvoton-Israel/npcm8xx-bootblock"
4LICENSE = "GPL-2.0-only"
Tim Leeee56bcd2023-02-02 11:10:41 +08005LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
Tim Lee7e9914f2022-11-07 09:47:20 +08006
Tim Leefedbc0b2023-05-23 10:19:18 +08007BB_TIP = "arbel_a35_bootblock.bin"
8BB_NO_TIP = "arbel_a35_bootblock_no_tip.bin"
9
10OUTPUT_BB_TIP_BIN = "Images/tip"
11OUTPUT_BB_NO_TIP_BIN = "Images/no_tip"
Tim Lee7e9914f2022-11-07 09:47:20 +080012
Tim Leeee56bcd2023-02-02 11:10:41 +080013S = "${WORKDIR}/git"
Tim Lee7e9914f2022-11-07 09:47:20 +080014
15SRC_URI = " \
Tim Leefedbc0b2023-05-23 10:19:18 +080016 git://github.com/Nuvoton-Israel/npcm8xx-bootblock;branch=main;protocol=https"
Tim Lee7e9914f2022-11-07 09:47:20 +080017
Tim Lee7e9914f2022-11-07 09:47:20 +080018inherit deploy
19
20do_deploy () {
Tim Leefedbc0b2023-05-23 10:19:18 +080021 if [ "${TIP_IMAGE}" = "True" ] ; then
22 install -D -m 644 ${OUTPUT_BB_TIP_BIN}/${BB_TIP} ${DEPLOYDIR}/${BB_TIP}
23 else
24 install -D -m 644 ${OUTPUT_BB_NO_TIP_BIN}/${BB_NO_TIP} ${DEPLOYDIR}/${BB_NO_TIP}
25 fi
Tim Lee7e9914f2022-11-07 09:47:20 +080026}
27
28addtask deploy before do_build after do_compile