c140a18037
Don't compile video modules on yeeloong since video subsystem is part of kernel. * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod, video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h, video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h. * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting. * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR. * include/grub/bitmap_scale.h: Likewise. * include/grub/bufio.h: Likewise. * include/grub/font.h: Likewise. * include/grub/gfxterm.h: Likewise. * include/grub/video.h: Likewise. * include/grub/vbe.h: Don't include video_fb.h. * video/i386/pc/vbe.c: Include video_fb.h. * commands/i386/pc/vbetest.c: Include video.h.
82 lines
2.5 KiB
Makefile
82 lines
2.5 KiB
Makefile
# -*- makefile -*-
|
|
LINK_BASE = 0x80200000
|
|
target_machine=yeeloong
|
|
COMMON_CFLAGS += -march=mips3
|
|
COMMON_ASFLAGS += -march=mips3
|
|
|
|
kernel_img_HEADERS += bitmap.h video.h gfxterm.h font.h bitmap_scale.h bufio.h
|
|
|
|
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 \
|
|
kern/$(target_cpu)/cache.S \
|
|
\
|
|
term/at_keyboard.c \
|
|
font/font_cmd.c font/font.c io/bufio.c \
|
|
video/video.c video/fb/video_fb.c video/fb/fbblit.c \
|
|
video/fb/fbfill.c video/fb/fbutil.c video/bitmap.c \
|
|
video/bitmap_scale.c video/sm712.c bus/pci.c bus/bonito.c \
|
|
term/gfxterm.c commands/extcmd.c lib/arg.c \
|
|
symlist.c
|
|
kernel_img_CFLAGS = $(COMMON_CFLAGS) -DUSE_ASCII_FAILBACK
|
|
kernel_img_ASFLAGS = $(COMMON_ASFLAGS)
|
|
kernel_img_LDFLAGS = $(COMMON_LDFLAGS) -static-libgcc -lgcc \
|
|
-Wl,-N,-S,-Ttext,$(LINK_BASE),-Bstatic
|
|
kernel_img_FORMAT = binary
|
|
|
|
# For ata.mod.
|
|
pkglib_MODULES += ata.mod
|
|
ata_mod_SOURCES = disk/ata.c
|
|
ata_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
ata_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
|
|
# For lspci.mod
|
|
pkglib_MODULES += lspci.mod
|
|
lspci_mod_SOURCES = commands/lspci.c
|
|
lspci_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
lspci_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
|
|
# For ata_pthru.mod.
|
|
pkglib_MODULES += ata_pthru.mod
|
|
ata_pthru_mod_SOURCES = disk/ata_pthru.c
|
|
ata_pthru_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
ata_pthru_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
|
|
# For mmap.mod.
|
|
pkglib_MODULES += mmap.mod
|
|
mmap_mod_SOURCES = mmap/mmap.c mmap/mips/yeeloong/uppermem.c
|
|
mmap_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
mmap_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
mmap_mod_ASFLAGS = $(COMMON_ASFLAGS)
|
|
|
|
# For datetime.mod
|
|
pkglib_MODULES += datetime.mod
|
|
datetime_mod_SOURCES = lib/cmos_datetime.c
|
|
datetime_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
datetime_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
|
|
# For date.mod
|
|
pkglib_MODULES += date.mod
|
|
date_mod_SOURCES = commands/date.c
|
|
date_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
date_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
|
|
# For datehook.mod
|
|
pkglib_MODULES += datehook.mod
|
|
datehook_mod_SOURCES = hook/datehook.c
|
|
datehook_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
datehook_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
|
|
|
|
sbin_SCRIPTS += grub-install
|
|
grub_install_SOURCES = util/grub-install.in
|
|
|