Skip to content

Commit

Permalink
fix luma versioning, this fix a few homebrews like bootntr
Browse files Browse the repository at this point in the history
  • Loading branch information
cooolgamer committed May 25, 2024
1 parent 9a5b2c3 commit a9ef93c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 9 additions & 3 deletions arm9/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ export VERSION_BUILD := $(shell git describe --tags --match v[0-9]* | cut -c2- |
export COMMIT := $(shell git rev-parse --short=8 HEAD)
export IS_RELEASE := 0

export BASE_VERSION_MAJOR := 13
export BASE_VERSION_MINOR := 1
export BASE_VERSION_BUILD := 1

ifeq ($(strip $(REVISION)),)
export REVISION := v1.5.1
export REVISION := v1.5.2
export VERSION_MAJOR := 1
export VERSION_MINOR := 5
export VERSION_BUILD := 1
export VERSION_BUILD := 2
endif

ifeq ($(strip $(COMMIT)),)
Expand Down Expand Up @@ -169,7 +173,9 @@ $(OFILES_SRC) : $(HFILES_BIN)
memory.o strings.o: CFLAGS += -O3
patches.o config.o: CFLAGS += -DCONFIG_TITLE="\"$(APP_TITLE) $(REVISION) configuration\""\
-DVERSION_MAJOR="$(VERSION_MAJOR)" -DVERSION_MINOR="$(VERSION_MINOR)"\
-DVERSION_BUILD="$(VERSION_BUILD)" -DISRELEASE="$(IS_RELEASE)" -DCOMMIT_HASH="0x$(COMMIT)"
-DVERSION_BUILD="$(VERSION_BUILD)" -DISRELEASE="$(IS_RELEASE)" -DCOMMIT_HASH="0x$(COMMIT)"\
-DBASE_VERSION_MAJOR="$(BASE_VERSION_MAJOR)" -DBASE_VERSION_MINOR="$(BASE_VERSION_MINOR)"\
-DBASE_VERSION_BUILD="$(BASE_VERSION_BUILD)"
config.o ini.o: CFLAGS += -DINI_HANDLER_LINENO=1 -DINI_STOP_ON_FIRST_ERROR=1
#---------------------------------------------------------------------------------
# you need a rule like this for each extension you use as binary data
Expand Down
6 changes: 3 additions & 3 deletions arm9/source/patches.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ u32 installK11Extension(u8 *pos, u32 size, bool needToInitSd, u32 baseK11VA, u32
info->bottomScreenFilter = configData.bottomScreenFilter;
info->autobootTwlTitleId = configData.autobootTwlTitleId;
info->autobootCtrAppmemtype = configData.autobootCtrAppmemtype;
info->versionMajor = VERSION_MAJOR;
info->versionMinor = VERSION_MINOR;
info->versionBuild = VERSION_BUILD;
info->versionMajor = BASE_VERSION_MAJOR;
info->versionMinor = BASE_VERSION_MINOR;
info->versionBuild = BASE_VERSION_BUILD;

if(ISRELEASE) info->flags = 1;
if(ISN3DS) info->flags |= 1 << 4;
Expand Down

0 comments on commit a9ef93c

Please sign in to comment.