5d04b11e0e
* Makefile.in (kernel_img_LDFLAGS): New variable. * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h. * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of overwriting. * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise. * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise. * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise. * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise. * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of overwriting. Remove -lgcc and -static-libgcc * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise. * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h (kernel_img_LDFLAGS): Append instead of overwriting. Remove -lgcc and -static-libgcc * conf/sparc64-ieee1275.rmk: Likewise. * include/grub/powerpc/libgcc.h: Move to ... * include/grub/libgcc.h: .. this. * include/grub/libgcc.h: Don't export most of the function on x86. (__bswapsi2): New export. (__bswapdi2): Likewise. * include/grub/mips/libgcc.h: Removed. * include/grub/sparc64/libgcc.h: Likewise.
22 lines
910 B
Makefile
22 lines
910 B
Makefile
# -*- makefile -*-
|
|
LINK_BASE = 0x80010000
|
|
target_machine=qemu-mips
|
|
COMMON_CFLAGS += -march=mips3
|
|
COMMON_ASFLAGS += -march=mips3
|
|
include $(srcdir)/conf/mips.mk
|
|
|
|
pkglib_IMAGES = kernel.img
|
|
kernel_img_SOURCES = kern/$(target_cpu)/startup.S \
|
|
kern/main.c kern/device.c kern/$(target_cpu)/init.c \
|
|
kern/$(target_cpu)/$(target_machine)/init.c \
|
|
kern/disk.c kern/dl.c kern/err.c kern/file.c kern/fs.c \
|
|
kern/misc.c kern/mm.c kern/term.c \
|
|
kern/rescue_parser.c kern/rescue_reader.c \
|
|
kern/list.c kern/handler.c kern/command.c kern/corecmd.c \
|
|
kern/parser.c kern/partition.c kern/env.c kern/$(target_cpu)/dl.c \
|
|
kern/generic/millisleep.c kern/generic/rtc_get_time_ms.c kern/time.c \
|
|
symlist.c kern/$(target_cpu)/cache.S
|
|
kernel_img_CFLAGS = $(COMMON_CFLAGS)
|
|
kernel_img_ASFLAGS = $(COMMON_ASFLAGS)
|
|
kernel_img_LDFLAGS = $(COMMON_LDFLAGS) -Wl,-N,-S,-Ttext,$(LINK_BASE),-Bstatic
|
|
kernel_img_FORMAT = binary
|