blob: 21ae6158ca8d3bd7bbde9689190e00b317123100 [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"
Patrick Williamsd541ec52022-04-30 07:41:26 -05004LICENSE = "GPL-2.0-only"
Benjamin Fair6f6bd102019-10-30 18:40:41 -07005LIC_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
Andrew Geisslerf1316a42021-02-12 09:14:34 -060011SRCREV = "7bfef99f7a0354395519c4975f96d66cdda1fb67"
Benjamin Fair6f6bd102019-10-30 18:40:41 -070012SRC_URI = " \
13 https://raw.githubusercontent.com/Nuvoton-Israel/bootblock/${SRCREV}/LICENSE;name=lic \
14 https://github.com/Nuvoton-Israel/bootblock/releases/download/BootBlock_${PV}/Poleg_bootblock_basic.bin;downloadfilename=${FILENAME};name=bin \
15"
16
17SRC_URI[lic.md5sum] = "b234ee4d69f5fce4486a80fdaf4a4263"
George Hung01eac592021-04-22 08:47:52 +080018SRC_URI[bin.sha256sum] = "3e92e3f6c4624139d000f91541792a54f52205637bb88abd14310c854694cb39"
Benjamin Fair6f6bd102019-10-30 18:40:41 -070019
20inherit deploy
21
22do_deploy () {
Benjamin Fair0290ed82019-12-02 16:14:22 -080023 install -D -m 644 ${WORKDIR}/${FILENAME} ${DEPLOYDIR}/Poleg_bootblock.bin
Benjamin Fair6f6bd102019-10-30 18:40:41 -070024}
25
26addtask deploy before do_build after do_compile