diff --git a/Makefile b/Makefile index 0442dfd..ae653bf 100644 --- a/Makefile +++ b/Makefile @@ -10,13 +10,6 @@ endif include $(DEVKITARM)/base_tools -UNAME_S := $(shell uname -s) -ifeq ($(UNAME_S),Darwin) - size := stat -f%z -else - size := stat -c%s -endif - name := Luma3DS revision := $(shell git describe --tags --match v[0-9]* --abbrev=8 | sed 's/-[0-9]*-g/-/') version_major := $(shell git describe --tags --match v[0-9]* | cut -c2- | cut -f1 -d- | cut -f1 -d.) @@ -152,7 +145,7 @@ $(dir_build)/config.o: CFLAGS += -DCONFIG_TITLE="\"$(name) $(revision) configura $(dir_build)/patches.o: CFLAGS += -DVERSION_MAJOR="$(version_major)" -DVERSION_MINOR="$(version_minor)"\ -DVERSION_BUILD="$(version_build)" -DISRELEASE="$(is_release)" -DCOMMIT_HASH="0x$(commit)" $(dir_build)/firm.o: $(dir_build)/modules.bin -$(dir_build)/firm.o: CFLAGS += -DLUMA_SECTION0_SIZE="$(shell $(size) $(dir_build)/modules.bin)" +$(dir_build)/firm.o: CFLAGS += -DLUMA_SECTION0_SIZE="$(shell wc -c build/modules.bin | tr -d [:space:][:alpha:][:punct:])" $(dir_build)/bundled.h: $(bundled) @$(foreach f, $(bundled),\