Skip to content

Commit 2ada95d

Browse files
committed
make: Remove old unused memdisk related
1 parent 2b4d677 commit 2ada95d

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

src/seed/Makefile

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -119,20 +119,12 @@ minimal: CPPOPTS += -ffunction-sections -fdata-sections
119119
minimal: LDOPTS += --gc-sections
120120
minimal: 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
136128
ifneq ($(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
###################################################
176168
clean:
177-
$(RM) $(OBJS) $(DEPS) $(SERVICE)
178-
$(RM) $(SERVICE).img $(MEMDISK)
169+
$(RM) $(OBJS) $(DEPS)
170+
$(RM) $(SERVICE) $(SERVICE).img $(MEMDISK)
179171

180172
-include $(DEPS)

0 commit comments

Comments
 (0)