diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 | 
1 files changed, 5 insertions, 2 deletions
| @@ -1898,8 +1898,11 @@ $(filter-out tools, $(u-boot-dirs)): tools  # is "yes"), so compile examples after U-Boot is compiled.  examples: $(filter-out examples, $(u-boot-dirs)) +# The setlocalversion script comes from linux and expects a +# KERNELVERSION variable in the environment for figuring out which +# annotated tags are relevant. Pass UBOOTVERSION.  define filechk_uboot.release -	echo "$(UBOOTVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))" +	KERNELVERSION=$(UBOOTVERSION) $(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree)  endef  # Store (new) UBOOTRELEASE string in include/config/uboot.release @@ -2426,7 +2429,7 @@ checkstack:  	$(PERL) $(src)/scripts/checkstack.pl $(ARCH)  ubootrelease: -	@echo "$(UBOOTVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))" +	@$(filechk_uboot.release)  ubootversion:  	@echo $(UBOOTVERSION) | 
