Project

General

Profile

Statistics
| Branch: | Revision:

root / prex-0.9.0 / mk / image.mk @ 03e9c04a

History | View | Annotate | Download (645 Bytes)

1 03e9c04a Brad Neuman
# Rules to create OS image
2
3
include $(SRCDIR)/mk/own.mk
4
5
TARGET:=	$(SRCDIR)/prexos
6
LOADER:=	$(SRCDIR)/bsp/boot/bootldr
7
DRIVER:=	$(SRCDIR)/bsp/drv/drv.ko
8
KERNEL:=	$(SRCDIR)/sys/prex
9
10
include $(SRCDIR)/conf/etc/tasks.mk
11
include $(SRCDIR)/conf/etc/files.mk
12
include $(SRCDIR)/mk/common.mk
13
-include $(SRCDIR)/bsp/boot/$(ARCH)/$(PLATFORM)/Makefile.sysgen
14
15
$(TARGET): dummy
16
	$(call echo-file,PACK   ,$@)
17
ifdef FILES
18
	$(AR) rcS bootdisk.a $(FILES)
19
	$(AR) rcS tmp.a $(KERNEL) $(DRIVER) $(TASKS) bootdisk.a
20
	$(RM) bootdisk.a
21
else
22
	$(AR) rcS tmp.a $(KERNEL) $(DRIVER) $(TASKS)
23
endif
24
	$(CAT) $(LOADER) tmp.a > $@
25
	$(RM) tmp.a
26
	$(call sysgen)
27
	@echo 'Done.'