mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
[GMENU2X] updt BUILDTIME macro + check if CFW_HASH exist && neq BUILDROOT_HASH (#33)
* Update BUILDTIME var. in gmenu2x.mk * check if CFW_HASH =/ BUILDROOT_HASH in gmenu2x.mk
This commit is contained in:
@@ -4,13 +4,15 @@ GMENU2X_SITE = https://github.com/MiyooCFW/gmenu2x.git
|
||||
GMENU2X_DEPENDENCIES = sdl sdl_image sdl_mixer sdl_sound sdl_ttf
|
||||
|
||||
PLATFORM = miyoo
|
||||
BUILDTIME := $(shell date +%s)
|
||||
BUILDTIME := \"$(shell date +%F\ %H:%M)\"
|
||||
BUILDROOT_HASH := $(shell git rev-parse --short HEAD)
|
||||
SDL_CFLAGS = $(shell $(STAGING_DIR)/usr/bin/sdl-config --cflags)
|
||||
CFLAGS = -DPLATFORM=\"$(PLATFORM)\" -D__BUILDTIME__=$(BUILDTIME) -D__BUILDROOT_HASH__=$(BUILDROOT_HASH) -DLOG_LEVEL=3
|
||||
ifdef CFW_HASH
|
||||
ifneq ($(CFW_HASH), $(BUILDROOT_HASH))
|
||||
CFLAGS += -D__CFW_HASH__=$(CFW_HASH)
|
||||
endif
|
||||
endif
|
||||
CFLAGS += -Isrc
|
||||
CFLAGS += -O0 -ggdb -g3 $(SDL_CFLAGS)
|
||||
CFLAGS += -DTARGET_MIYOO
|
||||
|
||||
Reference in New Issue
Block a user