File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,20 +119,12 @@ minimal: CPPOPTS += -ffunction-sections -fdata-sections
119119minimal : LDOPTS += --gc-sections
120120minimal : stripped
121121
122- # Disk image as a section
123- # ##################################################
124- memdisk :
125- @echo " \n>> Creating memdisk"
126- python $(INSTALL ) /memdisk/memdisk.py --file $(INSTALL ) /memdisk/memdisk.asm $(DISK )
127- @echo " \n>> Assembling memdisk"
128- nasm -f elf $(INSTALL ) /memdisk/memdisk.asm -o $(MEMDISK )
129-
130122# Service
131123# ##################################################
132124
133125# Link the service with the os
134- service : $(OBJS ) $(LIBS )
135- # build memdisk when IMAGES is set
126+ service : $(OBJS ) $(LIBS ) $( DRIVER_OBJS ) $( PLATFORM_OBJS )
127+ # build memdisk only when MEMDISK is set
136128ifneq ($(MEMDISK ) ,)
137129 @echo "\n>> Creating memdisk"
138130 python $(INSTALL)/memdisk/memdisk.py --file $(INSTALL)/memdisk/memdisk.asm $(DISK)
@@ -174,7 +166,7 @@ crt%.o: $(INSTALL)/crt/crt%.s
174166# Cleanup
175167# ##################################################
176168clean :
177- $(RM ) $(OBJS ) $(DEPS ) $( SERVICE )
178- $(RM ) $(SERVICE ) .img $(MEMDISK )
169+ $(RM ) $(OBJS ) $(DEPS )
170+ $(RM ) $(SERVICE ) $( SERVICE ) .img $(MEMDISK )
179171
180172-include $(DEPS )
You can’t perform that action at this time.
0 commit comments