2009-10-09 17:50:31 +00:00
|
|
|
# -*- makefile -*-
|
|
|
|
LINK_BASE = 0x80010000
|
2009-12-02 07:49:36 +00:00
|
|
|
target_machine=qemu-mips
|
2009-12-02 07:39:17 +00:00
|
|
|
COMMON_CFLAGS += -march=mips3
|
|
|
|
COMMON_ASFLAGS += -march=mips3
|
2009-10-09 17:50:31 +00:00
|
|
|
include $(srcdir)/conf/mips.mk
|
2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
* kern/mips/yeeloong/init.c (grub_video_sm712_init)
(grub_video_video_init, grub_video_bitmap_init)
(grub_font_manager_init, grub_term_gfxterm_init)
(grub_at_keyboard_init): New extern declarations.
(grub_machine_init): Initialize gfxterm and at_keyboard.
* kern/main.c (grub_main): Revert grub_printf delay kludge.
* util/grub-install.in: Revert embed of `at_keyboard.mod' and
`gfxterm.mod' into core image.
* conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
(kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
(kernel_img_FORMAT): Copy to ...
* conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
(kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
(kernel_img_FORMAT): ... here, and ...
* conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
(kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
(kernel_img_FORMAT): ... here.
(kernel_img_SOURCES): Add files necessary for output (gfxterm)
and input (at_keyboard) terminals in kernel.
(kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
(pkglib_MODULES): Remove `pci.mod'.
(pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
(sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
(at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
(at_keyboard_mod_LDFLAGS): Remove variables.
2010-01-20 01:19:53 +00:00
|
|
|
|
|
|
|
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) -static-libgcc -lgcc \
|
|
|
|
-Wl,-N,-S,-Ttext,$(LINK_BASE),-Bstatic
|
|
|
|
kernel_img_FORMAT = binary
|