Subject: CVS commit: pkgsrc/sysutils/u-boot
From: Christoph Badura
Date: 2019-10-06 19:02:10
Message id: 20191006170210.8E755FBF4@cvs.NetBSD.org

Log Message:
fix build of u-boot using pylibfdt on macOS.

u-boot.mk:
  pass PYTHON2, PYTHONCONFIG and PYTHONLIBPATH in ALL_ENV
patch-Makefile:
  make PYTHON2 overridable.  Add PYTHONCONFIG and BYTHONLIBPATH.
patch-lib_bch.c:
  #include <libkern/OSByteOrder.h> and use OSSwapHostToBigInt32
  as in u-boot master ab8fc41302 "fix compile error on macOS Mojave".
patch-scripts_dtc_pylibfdt_Makefile:
  determine PYTHONCLFAGS and PYTHONLIBS by asking PYTHONCONFIG.
  build PYTHONLDFLAGS from PYTHONLIBPATH and PYTHONLIBS
  add PYTHON{LD.C}FLAGS to LDFLAGS and CPPFLAGS in cmd_pymod.

bump PKGREVISION

tested with u-boot-nanopi-mi.

Files:
RevisionActionfile
1.20modifypkgsrc/sysutils/u-boot/Makefile
1.28modifypkgsrc/sysutils/u-boot/distinfo
1.21modifypkgsrc/sysutils/u-boot/u-boot.mk
1.3modifypkgsrc/sysutils/u-boot/patches/patch-Makefile
1.4modifypkgsrc/sysutils/u-boot/patches/patch-lib_bch.c
1.2modifypkgsrc/sysutils/u-boot/patches/patch-scripts_dtc_pylibfdt_Makefile