- Makefile macro for compiling, linking and dumping things into a binary blob that...
commit5333fce842b957217168594be25191395bd49fd9
authorDizzyOfCRN <DizzyOfCRN@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Tue, 15 Jan 2013 00:23:28 +0000 (15 00:23 +0000)
committerDizzyOfCRN <DizzyOfCRN@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Tue, 15 Jan 2013 00:23:28 +0000 (15 00:23 +0000)
treef626ab5d7031fce1fca2ba97cd31a58b918ba2dd
parenta39363511b6dfbf4a75f7f49cee3dbf182d647f8
- Makefile macro for compiling, linking and dumping things into a binary blob that can be the bootstrap but doesn't has to be
- Example mmakefile.src:

#$Id: mmakefile.src $
include $(TOP)/config/make.cfg

#MM raspi-bootimage:                \
#MM     linklibs-raspi-bootstrap    \
#MM     linklibs-raspi-bootconsole  \
#MM     kernel-kernel-kobj          \
#MM     kernel-exec-kobj

KLIBS   := exec
KDEVS   :=
KHNDLRS :=
KHIDDS  :=
KRSRCS  := kernel
KHOOKS  :=

KOBJS :=                                                            \
    $(addprefix $(KOBJSDIR)/,$(addsuffix _library.o ,$(KLIBS)))     \
$(addprefix $(KOBJSDIR)/,$(addsuffix _device.o  ,$(KDEVS)))     \
$(addprefix $(KOBJSDIR)/,$(addsuffix _handler.o ,$(KHNDLRS)))   \
$(addprefix $(KOBJSDIR)/,$(addsuffix _hidd.o    ,$(KHIDDS)))    \
$(addprefix $(KOBJSDIR)/,$(addsuffix _resource.o,$(KRSRCS)))    \
$(addprefix $(KOBJSDIR)/,$(addsuffix _driver.o  ,$(KDRVRS) ))   \
$(addprefix $(KOBJSDIR)/,$(addsuffix _hook.o    ,$(KHOOKS) ))

FILES := dummy

%build_image mmake=raspi-bootimage imagename=bootimage.img                      \
files=$(FILES) ldflags=$(LDFLAGS) linkerscript=ldscript.lds entry= map=yes  \
uselibs="raspi-bootstrap raspi-bootconsole" objfiles=$(KOBJS)

%common

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@46276 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
config/make.tmpl