--- qemu/roms/SLOF/Makefile.gen 2018/04/24 19:24:31 1.1.1.2 +++ qemu/roms/SLOF/Makefile.gen 2018/04/24 19:44:12 1.1.1.3 @@ -21,9 +21,13 @@ ifdef DRIVER RELEASE=$(shell cat ../VERSION) export DRIVER_NAME=$(shell cat ../VERSION | sed -e "s/-/./g" | awk -F . '{ printf("%s%02d%02d%1s%02s",$$1,$$2,$$3,$$4,$$5); }') else +ifneq (,$(wildcard ../.git)) +RELEASE=git-$(shell git rev-parse --short=16 HEAD) +else RELEASE="$(USER)@$(HOSTNAME)(private build)" export DRIVER_NAME=HEAD endif +endif DRVDATE=$(shell date +%Y-%h%d) @@ -138,6 +142,7 @@ clean_gen: clean_top $(MAKE) -C ../romfs/tools BOARD=$(BOARD) clean $(MAKE) -C ../tools clean $(MAKE) -C ../other-licence clean + $(MAKE) -C ../drivers clean $(MAKE) -C ../clients clean @for dir in $(COMMON_LIBS); do \ $(MAKE) -C ../lib/$$dir clean || exit 1; \ @@ -147,6 +152,7 @@ distclean_gen: clean_top $(MAKE) -C ../romfs/tools BOARD=$(BOARD) distclean $(MAKE) -C ../tools distclean $(MAKE) -C ../other-licence distclean + $(MAKE) -C ../drivers distclean $(MAKE) -C ../clients distclean @for dir in $(COMMON_LIBS); do \ $(MAKE) -C ../lib/$$dir distclean || exit 1; \