diff options
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/mdk-stage1/Makefile b/mdk-stage1/Makefile index ef47696fc..ce928abed 100644 --- a/mdk-stage1/Makefile +++ b/mdk-stage1/Makefile @@ -51,14 +51,24 @@ DEFS = -DVERSION=\"$(VERSION)\" -DSPAWN_SHELL $(ADDITIONAL_DEFS) -D_FILE_OFFSET_ COMPILE = $(CC) $(DEFS) $(CFLAGS) +ifeq (ppc, $(ARCH)) +INIT_HEADERS=init-libc-headers.h +else +ifeq (DIETLIBC, $(L)) +INIT_HEADERS=minilibc.h +else +INIT_HEADERS=init-libc-headers.h +endif +endif + +INIT_DEFS = -DINIT_HEADERS=\"$(INIT_HEADERS)\" - #- stage1 "loader" ifeq (DIETLIBC, $(L)) INITSRC = minilibc.c init.c -INIT_DEFS = -DINIT_HEADERS=\"minilibc.h\" -fno-builtin +INIT_DEFS += -fno-builtin else INITSRC = init.c -INIT_DEFS = -DINIT_HEADERS=\"init-libc-headers.h\" $(GLIBC_INCLUDES) +INIT_DEFS += $(GLIBC_INCLUDES) endif INIT_DEFS_ADD = -DBINARY=\"/sbin/stage1\" |