Tim Lee | 7e9914f | 2022-11-07 09:47:20 +0800 | [diff] [blame] | 1 | SUMMARY = "Primary bootloader for NPCM8XX (Arbel) devices" |
| 2 | DESCRIPTION = "Primary bootloader for NPCM8XX (Arbel) devices" |
| 3 | HOMEPAGE = "https://github.com/Nuvoton-Israel/npcm8xx-bootblock" |
| 4 | LICENSE = "GPL-2.0-only" |
Tim Lee | ee56bcd | 2023-02-02 11:10:41 +0800 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
Tim Lee | 7e9914f | 2022-11-07 09:47:20 +0800 | [diff] [blame] | 6 | |
Tim Lee | fedbc0b | 2023-05-23 10:19:18 +0800 | [diff] [blame] | 7 | BB_TIP = "arbel_a35_bootblock.bin" |
| 8 | BB_NO_TIP = "arbel_a35_bootblock_no_tip.bin" |
| 9 | |
| 10 | OUTPUT_BB_TIP_BIN = "Images/tip" |
| 11 | OUTPUT_BB_NO_TIP_BIN = "Images/no_tip" |
Tim Lee | 7e9914f | 2022-11-07 09:47:20 +0800 | [diff] [blame] | 12 | |
Tim Lee | ee56bcd | 2023-02-02 11:10:41 +0800 | [diff] [blame] | 13 | S = "${WORKDIR}/git" |
Tim Lee | 7e9914f | 2022-11-07 09:47:20 +0800 | [diff] [blame] | 14 | |
| 15 | SRC_URI = " \ |
Tim Lee | fedbc0b | 2023-05-23 10:19:18 +0800 | [diff] [blame] | 16 | git://github.com/Nuvoton-Israel/npcm8xx-bootblock;branch=main;protocol=https" |
Tim Lee | 7e9914f | 2022-11-07 09:47:20 +0800 | [diff] [blame] | 17 | |
Tim Lee | 7e9914f | 2022-11-07 09:47:20 +0800 | [diff] [blame] | 18 | inherit deploy |
| 19 | |
| 20 | do_deploy () { |
Tim Lee | fedbc0b | 2023-05-23 10:19:18 +0800 | [diff] [blame] | 21 | 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 Lee | 7e9914f | 2022-11-07 09:47:20 +0800 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | addtask deploy before do_build after do_compile |