added stage1-live target with define LIVE
This commit is contained in:
parent
78e009a47a
commit
db51f2b6fb
@ -1,5 +1,6 @@
|
||||
init
|
||||
stage1-full
|
||||
stage1-live
|
||||
stage1-cdrom
|
||||
stage1-disk
|
||||
stage1-network
|
||||
|
12
Makefile
12
Makefile
@ -125,6 +125,8 @@ NETWORK_DEFS = -DDISABLE_CDROM -DDISABLE_DISK
|
||||
|
||||
STAGE1OBJS-USBNET = $(subst .c,-USBNET.o,$(STAGE1SRC) $(NETWORKSRC))
|
||||
|
||||
STAGE1OBJS-LIVE = $(subst .c,-LIVE.o,$(STAGE1SRC) $(CDROMSRC) $(DISKSRC) $(NETWORKSRC))
|
||||
LIVE_DEFS = -DLIVE
|
||||
|
||||
STAGE1OBJS-FULL = $(subst .c,-FULL.o,$(STAGE1SRC) $(CDROMSRC) $(DISKSRC) $(NETWORKSRC))
|
||||
|
||||
@ -142,7 +144,7 @@ endif
|
||||
endif
|
||||
|
||||
|
||||
BINS = init stage1-full
|
||||
BINS = init stage1-full stage1-live
|
||||
|
||||
ifeq (i386, $(ARCH))
|
||||
BINS += stage1-cdrom stage1-disk stage1-network stage1-usbnet
|
||||
@ -195,6 +197,10 @@ stage1-full: $(STAGE1OBJS-FULL) $(STAGE1_OWN_LIBS) $(STAGE1_NETWORK_LIBS) $(FRON
|
||||
$(CC) -o $@ $^ $(LDFLAGS_STAGE1)
|
||||
$(STRIPCMD) $@
|
||||
|
||||
stage1-live: $(STAGE1OBJS-LIVE) $(STAGE1_OWN_LIBS) $(STAGE1_NETWORK_LIBS) $(FRONTEND_LINK) $(STAGE1_LIBC)
|
||||
$(CC) -o $@ $^ $(LDFLAGS_STAGE1)
|
||||
$(STRIPCMD) $@
|
||||
|
||||
|
||||
$(INITOBJS): %.o: %.c
|
||||
$(COMPILE) $(INIT_DEFS) -c $<
|
||||
@ -214,6 +220,9 @@ $(STAGE1OBJS-USBNET): %-USBNET.o: %.c
|
||||
$(STAGE1OBJS-FULL): %-FULL.o: %.c
|
||||
$(COMPILE) $(INCLUDES) $(USBNET_DEFS_GEN) -c $< -o $@
|
||||
|
||||
$(STAGE1OBJS-LIVE): %-LIVE.o: %.c
|
||||
$(COMPILE) $(INCLUDES) $(USBNET_DEFS_GEN) $(LIVE_DEFS) -c $< -o $@
|
||||
|
||||
.c.o:
|
||||
$(COMPILE) $(INCLUDES) -c $<
|
||||
|
||||
@ -257,3 +266,4 @@ endif
|
||||
|
||||
*-FULL.o: %-FULL.o: %.o
|
||||
|
||||
*-LIVE.o: %-LIVE.o: %.o
|
||||
|
Loading…
Reference in New Issue
Block a user