$NetBSD: patch-Makefile,v 1.3 2019/10/06 17:02:10 bad Exp $ --- Makefile.orig 2018-11-14 16:10:06.000000000 +0000 +++ Makefile @@ -359,7 +359,9 @@ YACC = bison AWK = awk PERL = perl PYTHON ?= python -PYTHON2 = python2 +PYTHON2 ?= python2 +PYTHONCONFIG ?= $(PYTHON)-config +PYTHONLIBPATH ?=#empty but overridable PYTHON3 = python3 DTC ?= $(objtree)/scripts/dtc/dtc CHECK = sparse @@ -1472,7 +1474,7 @@ prepare: prepare0 define filechk_version.h (echo \#define PLAIN_VERSION \"$(UBOOTRELEASE)\"; \ - echo \#define U_BOOT_VERSION \"U-Boot \" PLAIN_VERSION; \ + echo \#define U_BOOT_VERSION \"U-Boot \" PLAIN_VERSION \"$(UBOOT_PKGREVISION)\"; \ echo \#define CC_VERSION_STRING \"$$(LC_ALL=C $(CC) --version | head -n 1)\"; \ echo \#define LD_VERSION_STRING \"$$(LC_ALL=C $(LD) --version | head -n 1)\"; ) endef @@ -1619,12 +1621,12 @@ CHANGELOG: # make distclean Remove editor backup files, patch leftover files and the like # Directories & files removed with 'make clean' -CLEAN_DIRS += $(MODVERDIR) \ +CLEAN_DIRS += $(MODVERDIR) SPL \ $(foreach d, spl tpl, $(patsubst %,$d/%, \ $(filter-out include, $(shell ls -1 $d 2>/dev/null)))) CLEAN_FILES += include/bmp_logo.h include/bmp_logo_data.h \ - boot* u-boot* MLO* SPL System.map fit-dtb.blob + boot* u-boot* MLO* System.map fit-dtb.blob # Directories & files removed with 'make mrproper' MRPROPER_DIRS += include/config include/generated spl tpl \