HomeFreeBSD

u-boot: Update to v2018.01

Description

u-boot: Update to v2018.01

  • Track upstream directly We cannot build u-boot directly on FreeBSD as it needs gmake, gsed etc ... Earlier update dealt with that using BINARY_ALIAS to avoid patching. The cache patches have been sent upstream (a V2 is needed as some arch don't have those functions) so put them in the ports tree for now. This is the only patches needed to build a u-boot for armv6/armv7/arm64 so do not use the freebsd github fork anymore as they will go away soon.
  • We now use boot.scr (converted with mkimage from sysutils/u-boot-tools) instead of patching u-boot. U-Boot have two way for dealing with distribution one is boot scripts and the other is extlinux. extlinux will be harder as we use raw binary for ubldr and use go $address, this cannot fail and the boot process could be in a bad state so this is something that upstream doesn't want to merge in mainline. boot script are easy to write and compile and also give a way to the user to customize it's boot (printing a message, setting variable etc ...)
  • CONFIG_API isn't defined by default so use a configuration fragment and generate our final config with scripts/kconfig/merge_config.sh Other configuration value could be added in the futur. For now only arm uses it as we don't use CONFIG_API on arm64.
  • Switch the maintainer to uboot@freebsd.org

Reviewed by: imp (previous version)
Approved by: imp
Differential Revision: https://reviews.freebsd.org/D14230

Details

Provenance
manuAuthored on
Reviewer
imp
Differential Revision
D14230: u-boot: Update to v2018.01
Parents
rP465467: security/dehydrated: Update to version 0.6.1-7
Branches
Unknown
Tags
Unknown