freebsd-ports/sysutils/u-boot-sopine-spi/Makefile
Tobias Kortkamp e79fe1aabc Fix WWW in parent/child ports
Many of the WWW are overwritten later which means the wrong value
is used. This did not happen before where the children were either
 a) just using the pkg-descr from the parents
 b) or had their own separate pkg-descr with custom WWW

Use WWW?= in parents when the child's WWW is different.

Children that use the same WWW as the parent can just inherit it,
i.e., the child WWW can be removed.

Approved by:	portmgr (implicit)
2022-09-10 19:41:16 +02:00

26 lines
923 B
Makefile

MASTERDIR= ${.CURDIR}/../u-boot-master
MODEL= sopine-spi
BOARD_CONFIG= sopine_baseboard_defconfig
FAMILY= allwinner64
EXTRA_PATCHES?= ${.CURDIR}/files/
CONFIG_FRAGMENT= ${.CURDIR}/../u-boot-sopine-spi/files/spi_fragment
FRAGMENT_NAME= spi_fragment
NO_METADATA= yes
UBOOT_PLIST= u-boot-sunxi-with-spl.bin \
boot.scr
PLIST_EXTRAS= sopine-spi-flasher.img
post-build:
mkimage -C none -A arm64 -T script -d ${.CURDIR}/../u-boot-sopine-spi/files/boot.cmd ${WRKSRC}/boot.scr
post-stage:
makefs -t msdos -s 5m ${WRKDIR}/sopine-spi-flash.msdos ${STAGEDIR}/${INST}
mkimg -v -s mbr -p fat32::5M:1M -o ${STAGEDIR}/${INST}/sopine-spi-flasher.img
dd if=${WRKDIR}/sopine-spi-flash.msdos of=${STAGEDIR}/${INST}/sopine-spi-flasher.img bs=1M oseek=1 conv=notrunc
dd if=${STAGEDIR}/${INST}/u-boot-sunxi-with-spl.bin of=${STAGEDIR}/${INST}/sopine-spi-flasher.img bs=1k oseek=8 conv=notrunc
.include "${MASTERDIR}/Makefile"