Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GMENU2X] updt BUILDTIME macro + check if CFW_HASH exist && neq BUILDROOT_HASH #33

Merged
merged 3 commits into from
Apr 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion package/gmenu2x/gmenu2x.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down