From d4deffbb564aa87dc98de8be3d15ff26433d0a42 Mon Sep 17 00:00:00 2001 From: Steven Mattera Date: Fri, 30 Nov 2018 18:18:54 -0500 Subject: [PATCH] Add `ATMOSPHERE_BUILD_SOURCE` definition. --- exosphere/Makefile | 5 +++++ fusee/fusee-primary/Makefile | 4 ++++ fusee/fusee-secondary/Makefile | 4 ++++ stratosphere/boot/Makefile | 4 ++++ stratosphere/creport/Makefile | 4 ++++ stratosphere/fatal/Makefile | 4 ++++ stratosphere/fs_mitm/Makefile | 4 ++++ stratosphere/loader/Makefile | 4 ++++ stratosphere/pm/Makefile | 4 ++++ stratosphere/set_mitm/Makefile | 4 ++++ stratosphere/sm/Makefile | 4 ++++ thermosphere/Makefile | 4 ++++ 12 files changed, 49 insertions(+) diff --git a/exosphere/Makefile b/exosphere/Makefile index 11339bb05..2f98ae1f9 100644 --- a/exosphere/Makefile +++ b/exosphere/Makefile @@ -34,6 +34,11 @@ INCLUDES := include ../common/include #--------------------------------------------------------------------------------- ARCH := -march=armv8-a -mtune=cortex-a57 -mgeneral-regs-only #<- important DEFINES := -D__CCPLEX__ -DATMOSPHERE_GIT_BRANCH=\"$(AMSBRANCH)\" -DATMOSPHERE_GIT_REV=\"$(AMSREV)\" + +ifneq ($(strip $(AMSSRC)),) + DEFINES += -DATMOSPHERE_BUILD_SOURCE=\"$(strip $(AMSSRC))\" +endif + CFLAGS := \ -g \ -O2 \ diff --git a/fusee/fusee-primary/Makefile b/fusee/fusee-primary/Makefile index cf79835f8..c5f61c3f1 100644 --- a/fusee/fusee-primary/Makefile +++ b/fusee/fusee-primary/Makefile @@ -35,6 +35,10 @@ INCLUDES := include ../../common/include ARCH := -march=armv4t -mtune=arm7tdmi -mthumb -mthumb-interwork DEFINES := -D__BPMP__ -DFUSEE_STAGE1_SRC -DATMOSPHERE_GIT_BRANCH=\"$(AMSBRANCH)\" -DATMOSPHERE_GIT_REV=\"$(AMSREV)\" +ifneq ($(strip $(AMSSRC)),) + DEFINES += -DATMOSPHERE_BUILD_SOURCE=\"$(strip $(AMSSRC))\" +endif + CFLAGS := \ -g \ -O2 \ diff --git a/fusee/fusee-secondary/Makefile b/fusee/fusee-secondary/Makefile index c2c849f4d..8b6e16e00 100644 --- a/fusee/fusee-secondary/Makefile +++ b/fusee/fusee-secondary/Makefile @@ -38,6 +38,10 @@ INCLUDES := include ../../common/include ARCH := -march=armv4t -mtune=arm7tdmi -marm DEFINES := -D__BPMP__ -DFUSEE_STAGE2_SRC -DATMOSPHERE_GIT_BRANCH=\"$(AMSBRANCH)\" -DATMOSPHERE_GIT_REV=\"$(AMSREV)\" +ifneq ($(strip $(AMSSRC)),) + DEFINES += -DATMOSPHERE_BUILD_SOURCE=\"$(strip $(AMSSRC))\" +endif + CFLAGS := \ -g \ -O2 \ diff --git a/stratosphere/boot/Makefile b/stratosphere/boot/Makefile index 7ea2668f3..d60cc8f98 100644 --- a/stratosphere/boot/Makefile +++ b/stratosphere/boot/Makefile @@ -34,6 +34,10 @@ EXEFS_SRC := exefs_src DEFINES := -DDISABLE_IPC -DATMOSPHERE_GIT_BRANCH=\"$(AMSBRANCH)\" -DATMOSPHERE_GIT_REV=\"$(AMSREV)\" +ifneq ($(strip $(AMSSRC)),) + DEFINES += -DATMOSPHERE_BUILD_SOURCE=\"$(strip $(AMSSRC))\" +endif + #--------------------------------------------------------------------------------- # options for code generation #--------------------------------------------------------------------------------- diff --git a/stratosphere/creport/Makefile b/stratosphere/creport/Makefile index 71c014dc5..44d7724a7 100644 --- a/stratosphere/creport/Makefile +++ b/stratosphere/creport/Makefile @@ -33,6 +33,10 @@ EXEFS_SRC := exefs_src DEFINES := -DDISABLE_IPC -DATMOSPHERE_GIT_BRANCH=\"$(AMSBRANCH)\" -DATMOSPHERE_GIT_REV=\"$(AMSREV)\" +ifneq ($(strip $(AMSSRC)),) + DEFINES += -DATMOSPHERE_BUILD_SOURCE=\"$(strip $(AMSSRC))\" +endif + #--------------------------------------------------------------------------------- # options for code generation #--------------------------------------------------------------------------------- diff --git a/stratosphere/fatal/Makefile b/stratosphere/fatal/Makefile index fbbe7ae9c..0fa8885af 100644 --- a/stratosphere/fatal/Makefile +++ b/stratosphere/fatal/Makefile @@ -33,6 +33,10 @@ EXEFS_SRC := exefs_src DEFINES := -DDISABLE_IPC -DATMOSPHERE_GIT_BRANCH=\"$(AMSBRANCH)\" -DATMOSPHERE_GIT_REV=\"$(AMSREV)\" +ifneq ($(strip $(AMSSRC)),) + DEFINES += -DATMOSPHERE_BUILD_SOURCE=\"$(strip $(AMSSRC))\" +endif + #--------------------------------------------------------------------------------- # options for code generation #--------------------------------------------------------------------------------- diff --git a/stratosphere/fs_mitm/Makefile b/stratosphere/fs_mitm/Makefile index 4ebc8f6d9..15b87c7cb 100644 --- a/stratosphere/fs_mitm/Makefile +++ b/stratosphere/fs_mitm/Makefile @@ -33,6 +33,10 @@ EXEFS_SRC := exefs_src DEFINES := -DDISABLE_IPC -DATMOSPHERE_GIT_BRANCH=\"$(AMSBRANCH)\" -DATMOSPHERE_GIT_REV=\"$(AMSREV)\" +ifneq ($(strip $(AMSSRC)),) + DEFINES += -DATMOSPHERE_BUILD_SOURCE=\"$(strip $(AMSSRC))\" +endif + #--------------------------------------------------------------------------------- # options for code generation #--------------------------------------------------------------------------------- diff --git a/stratosphere/loader/Makefile b/stratosphere/loader/Makefile index 4ebc8f6d9..15b87c7cb 100644 --- a/stratosphere/loader/Makefile +++ b/stratosphere/loader/Makefile @@ -33,6 +33,10 @@ EXEFS_SRC := exefs_src DEFINES := -DDISABLE_IPC -DATMOSPHERE_GIT_BRANCH=\"$(AMSBRANCH)\" -DATMOSPHERE_GIT_REV=\"$(AMSREV)\" +ifneq ($(strip $(AMSSRC)),) + DEFINES += -DATMOSPHERE_BUILD_SOURCE=\"$(strip $(AMSSRC))\" +endif + #--------------------------------------------------------------------------------- # options for code generation #--------------------------------------------------------------------------------- diff --git a/stratosphere/pm/Makefile b/stratosphere/pm/Makefile index 766f33dd4..360385dcc 100644 --- a/stratosphere/pm/Makefile +++ b/stratosphere/pm/Makefile @@ -33,6 +33,10 @@ EXEFS_SRC := exefs_src DEFINES := -DDISABLE_IPC -DATMOSPHERE_GIT_BRANCH=\"$(AMSBRANCH)\" -DATMOSPHERE_GIT_REV=\"$(AMSREV)\" +ifneq ($(strip $(AMSSRC)),) + DEFINES += -DATMOSPHERE_BUILD_SOURCE=\"$(strip $(AMSSRC))\" +endif + #--------------------------------------------------------------------------------- # options for code generation #--------------------------------------------------------------------------------- diff --git a/stratosphere/set_mitm/Makefile b/stratosphere/set_mitm/Makefile index 71c014dc5..44d7724a7 100644 --- a/stratosphere/set_mitm/Makefile +++ b/stratosphere/set_mitm/Makefile @@ -33,6 +33,10 @@ EXEFS_SRC := exefs_src DEFINES := -DDISABLE_IPC -DATMOSPHERE_GIT_BRANCH=\"$(AMSBRANCH)\" -DATMOSPHERE_GIT_REV=\"$(AMSREV)\" +ifneq ($(strip $(AMSSRC)),) + DEFINES += -DATMOSPHERE_BUILD_SOURCE=\"$(strip $(AMSSRC))\" +endif + #--------------------------------------------------------------------------------- # options for code generation #--------------------------------------------------------------------------------- diff --git a/stratosphere/sm/Makefile b/stratosphere/sm/Makefile index b73b78a53..67aecefd0 100644 --- a/stratosphere/sm/Makefile +++ b/stratosphere/sm/Makefile @@ -33,6 +33,10 @@ EXEFS_SRC := exefs_src DEFINES := -DDISABLE_IPC -DATMOSPHERE_GIT_BRANCH=\"$(AMSBRANCH)\" -DATMOSPHERE_GIT_REV=\"$(AMSREV)\" +ifneq ($(strip $(AMSSRC)),) + DEFINES += -DATMOSPHERE_BUILD_SOURCE=\"$(strip $(AMSSRC))\" +endif + #--------------------------------------------------------------------------------- # options for code generation #--------------------------------------------------------------------------------- diff --git a/thermosphere/Makefile b/thermosphere/Makefile index 7f2634bbe..cb457089d 100644 --- a/thermosphere/Makefile +++ b/thermosphere/Makefile @@ -35,6 +35,10 @@ INCLUDES := include ../common/include ARCH := -march=armv8-a -mtune=cortex-a57 DEFINES := -DATMOSPHERE_GIT_BRANCH=\"$(AMSBRANCH)\" -DATMOSPHERE_GIT_REV=\"$(AMSREV)\" +ifneq ($(strip $(AMSSRC)),) + DEFINES += -DATMOSPHERE_BUILD_SOURCE=\"$(strip $(AMSSRC))\" +endif + CFLAGS := \ -g \ -O2 \