uboot-envtools: adjust compile patch to version v2021.01
authorRonny Kotzschmar <ro.ok@me.com>
Sun, 28 Feb 2021 22:31:35 +0000 (23:31 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 1 Mar 2021 20:50:08 +0000 (21:50 +0100)
with u-boot v2020.07 some variables have been renamed so this patch needs to be adjusted
otherwise at least with macOS as build system there are build errors

Signed-off-by: Ronny Kotzschmar <ro.ok@me.com>
(cherry picked from commit 547a932ee97d95a966bae947a84140556d07c3ce)

package/boot/uboot-envtools/patches/001-compile.patch

index 5413aa4a4153836ef9c00e59be680adc54b63c59..9b1b6b5d35ca069b06401b484a9038be04925ea3 100644 (file)
@@ -5,10 +5,10 @@
  override HOSTCC = $(CC)
  
 +ifneq ($(TARGET_CFLAGS),)
-+HOSTCFLAGS = $(TARGET_CFLAGS)
++KBUILD_HOSTCFLAGS = $(TARGET_CFLAGS)
 +endif
 +ifneq ($(TARGET_LDFLAGS),)
-+HOSTLDFLAGS = $(TARGET_LDFLAGS)
++KBUILD_HOSTLDFLAGS = $(TARGET_LDFLAGS)
 +endif
 +
  # Compile for a hosted environment on the target