2 # Makefile for the Baget specific kernel interface routines
5 # Note! Dependencies are done automagically by 'make dep', which also
6 # removes any old dependencies. DON'T put your own dependencies here
7 # unless it's something special (ie not a .c file).
9 # Note 2! The CFLAGS definitions are now in the main makefile...
15 export-objs := vacrtc.o
16 obj-y := baget.o print.o setup.o time.o irq.o bagetIRQ.o \
18 obj-$(CONFIG_VAC_RTC) += vacrtc.o
20 bagetIRQ.o : bagetIRQ.S
21 $(CC) $(CFLAGS) -c -o $@ $<
24 ##################### Baget Loader stuff ########################
26 image: ../../../vmlinux
30 $(OBJCOPY) -O binary $< $@
33 echo "Dummy ramdisk used. Provide your own if needed !" > $@
38 dummy.o: dummy.c image.bin ramdisk.bin
39 $(CC) $(CFLAGS) -c -o $@ $<
40 $(OBJCOPY) --add-section=.vmlinux=image.bin \
41 --add-section=.ramdisk=ramdisk.bin $@
45 BEGIN { printf "/* DO NOT EDIT THIS FILE */\n" } \
46 /_ftext/ { printf "#define LOADADDR 0x%s\n", $$1 } \
47 /kernel_entry/ { printf "#define START 0x%s\n", $$1 } \
48 /balo_ramdisk_base/ { printf "#define RAMDISK_BASE 0x%s\n", $$1 } \
49 /balo_ramdisk_size/ { printf "#define RAMDISK_SIZE 0x%s\n", $$1 } \
54 balo_supp.o: balo_supp.S
57 balo: balo.o dummy.o balo_supp.o print.o
58 $(LD) $(LDFLAGS) -T ld.script.balo -o $@ $^
61 rm -f balo balo.h dummy.c image image.bin
63 include $(TOPDIR)/Rules.make