blob: 77285dc36472df9964feefc6e188c22491552148 [file] [log] [blame]
Benjamin Fair6f6bd102019-10-30 18:40:41 -07001SUMMARY = "Primary bootloader for NPCM7XX (Poleg) devices"
2DESCRIPTION = "Primary bootloader for NPCM7XX (Poleg) devices"
3HOMEPAGE = "https://github.com/Nuvoton-Israel/npcm7xx-bootblock"
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
6
Benjamin Fair0290ed82019-12-02 16:14:22 -08007FILENAME = "Poleg_bootblock_${PV}.bin"
Benjamin Fair6f6bd102019-10-30 18:40:41 -07008
9S = "${WORKDIR}"
10
Benjamin Fair6f6bd102019-10-30 18:40:41 -070011SRC_URI = " \
12 https://raw.githubusercontent.com/Nuvoton-Israel/bootblock/${SRCREV}/LICENSE;name=lic \
13 https://github.com/Nuvoton-Israel/bootblock/releases/download/BootBlock_${PV}/Poleg_bootblock_basic.bin;downloadfilename=${FILENAME};name=bin \
14"
15
16SRC_URI[lic.md5sum] = "b234ee4d69f5fce4486a80fdaf4a4263"
Benjamin Fair9dfbc712020-12-21 16:51:42 -080017SRC_URI[bin.sha256sum] = "b2df56cc8667227fa625f11c628bfc10c831d36d076bf28ff376902d06b63a54"
Benjamin Fair6f6bd102019-10-30 18:40:41 -070018
19inherit deploy
20
21do_deploy () {
Benjamin Fair0290ed82019-12-02 16:14:22 -080022 install -D -m 644 ${WORKDIR}/${FILENAME} ${DEPLOYDIR}/Poleg_bootblock.bin
Benjamin Fair6f6bd102019-10-30 18:40:41 -070023}
24
25addtask deploy before do_build after do_compile