2 # Makefile for the Baget specific kernel interface routines
6 obj-y := baget.o print.o setup.o time.o irq.o bagetIRQ.o \
8 obj-$(CONFIG_VAC_RTC) += vacrtc.o
10 EXTRA_AFLAGS := $(CFLAGS)
12 bagetIRQ.o : bagetIRQ.S
13 $(CC) $(CFLAGS) -c -o $@ $<
15 ##################### Baget Loader stuff ########################
17 image: ../../../vmlinux
21 $(OBJCOPY) -O binary $< $@
24 echo "Dummy ramdisk used. Provide your own if needed !" > $@
29 dummy.o: dummy.c image.bin ramdisk.bin
30 $(CC) $(CFLAGS) -c -o $@ $<
31 $(OBJCOPY) --add-section=.vmlinux=image.bin \
32 --add-section=.ramdisk=ramdisk.bin $@
36 BEGIN { printf "/* DO NOT EDIT THIS FILE */\n" } \
37 /_ftext/ { printf "#define LOADADDR 0x%s\n", $$1 } \
38 /kernel_entry/ { printf "#define START 0x%s\n", $$1 } \
39 /balo_ramdisk_base/ { printf "#define RAMDISK_BASE 0x%s\n", $$1 } \
40 /balo_ramdisk_size/ { printf "#define RAMDISK_SIZE 0x%s\n", $$1 } \
45 balo_supp.o: balo_supp.S
48 balo: balo.o dummy.o balo_supp.o print.o
49 $(LD) $(LDFLAGS) -T ld.script.balo -o $@ $^
52 rm -f balo balo.h dummy.c image image.bin