e4b47e0cd5
* conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove `symlist.c', add `grubof_symlist.c'. (symlist.c): Variable removed. (grubof_HEADERS): Variable added. (grubof_symlist.c): New target. (kernel_syms.lst): Use `grubof_HEADERS' instead of `kernel_img_HEADERS'. (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'. * kern/powerpc/dl.c: New file. * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header): Function removed. (grub_arch_dl_relocate_symbols): Likewise. (grub_register_exported_symbols): Likewise.
62 lines
2.4 KiB
Makefile
62 lines
2.4 KiB
Makefile
|
|
# -*- makefile -*-
|
|
|
|
COMMON_ASFLAGS = -nostdinc -D__ASSEMBLY__
|
|
COMMON_CFLAGS = -ffreestanding -msoft-float
|
|
|
|
# Images.
|
|
|
|
MOSTLYCLEANFILES += grubof_symlist.c kernel_syms.lst
|
|
DEFSYMFILES += kernel_syms.lst
|
|
|
|
grubof_HEADERS = arg.h boot.h device.h disk.h dl.h elf.h env.h err.h \
|
|
file.h fs.h kernel.h misc.h mm.h net.h rescue.h symbol.h \
|
|
term.h types.h machine/biosdisk.h \
|
|
partition.h pc_partition.h machine/time.h machine/ieee1275.h
|
|
|
|
grubof_symlist.c: $(addprefix include/grub/,$(grubof_HEADERS)) gensymlist.sh
|
|
sh $(srcdir)/gensymlist.sh $(filter %.h,$^) > $@
|
|
|
|
kernel_syms.lst: $(addprefix include/grub/,$(grubof_HEADERS)) genkernsyms.sh
|
|
sh $(srcdir)/genkernsyms.sh $(filter %h,$^) > $@
|
|
|
|
# Utilities.
|
|
sbin_UTILITIES = grubof
|
|
bin_UTILITIES = grub-emu
|
|
noinst_UTILITIES = genmoddep
|
|
|
|
# For grub-emu
|
|
grub_emu_SOURCES = kern/main.c kern/device.c \
|
|
kern/disk.c kern/dl.c kern/file.c kern/fs.c kern/err.c \
|
|
kern/misc.c kern/loader.c kern/rescue.c kern/term.c \
|
|
partmap/amiga.c partmap/pc.c partmap/apple.c fs/fshelp.c \
|
|
util/i386/pc/biosdisk.c fs/fat.c fs/ext2.c fs/ufs.c fs/minix.c fs/hfs.c \
|
|
fs/jfs.c fs/iso9660.c \
|
|
normal/cmdline.c normal/command.c normal/main.c normal/menu.c \
|
|
normal/arg.c kern/partition.c \
|
|
util/console.c util/grub-emu.c util/misc.c util/i386/pc/getroot.c \
|
|
kern/env.c commands/ls.c \
|
|
commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c
|
|
grub_emu_LDFLAGS = -lncurses
|
|
|
|
grubof_SOURCES = boot/powerpc/ieee1275/crt0.S boot/powerpc/ieee1275/cmain.c \
|
|
boot/powerpc/ieee1275/ieee1275.c kern/main.c kern/device.c \
|
|
kern/disk.c kern/dl.c kern/file.c kern/fs.c kern/err.c fs/fshelp.c \
|
|
kern/misc.c kern/mm.c kern/loader.c kern/rescue.c kern/term.c \
|
|
kern/powerpc/ieee1275/init.c term/powerpc/ieee1275/ofconsole.c \
|
|
kern/powerpc/ieee1275/openfw.c fs/ext2.c fs/ufs.c fs/minix.c fs/hfs.c \
|
|
fs/jfs.c normal/cmdline.c normal/command.c normal/main.c normal/menu.c \
|
|
disk/powerpc/ieee1275/ofdisk.c partmap/amiga.c partmap/pc.c \
|
|
partmap/apple.c kern/partition.c \
|
|
kern/env.c normal/arg.c loader/powerpc/ieee1275/linux.c \
|
|
loader/powerpc/ieee1275/linux_normal.c commands/boot.c \
|
|
normal/powerpc/setjmp.S kern/powerpc/dl.c grubof_symlist.c
|
|
grubof_HEADERS = grub/powerpc/ieee1275/ieee1275.h
|
|
grubof_CFLAGS = $(COMMON_CFLAGS) -DGRUBOF
|
|
grubof_ASFLAGS = $(COMMON_ASFLAGS)
|
|
grubof_LDFLAGS = -nostdlib -static-libgcc -lgcc -Wl,-N,-S,-Ttext,0x200000,-Bstatic
|
|
|
|
# For genmoddep.
|
|
genmoddep_SOURCES = util/genmoddep.c
|
|
|
|
# Modules.
|