From 27a0b3afd21bd744e789acdaed2663ffed255d26 Mon Sep 17 00:00:00 2001 From: Cristi Magherusan Date: Sat, 2 Aug 2008 23:14:42 +0300 Subject: [PATCH] forgot to add the seabios changes --- packages/seabios/hardcode.diff | 43 ++++++++++++++++++++++++++++ packages/seabios/seabios.mk | 64 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 107 insertions(+) create mode 100644 packages/seabios/hardcode.diff create mode 100644 packages/seabios/seabios.mk diff --git a/packages/seabios/hardcode.diff b/packages/seabios/hardcode.diff new file mode 100644 index 0000000..ce2820c --- /dev/null +++ b/packages/seabios/hardcode.diff @@ -0,0 +1,43 @@ +--- a/src/config.h 2008-07-03 15:12:21.000000000 -0600 ++++ b/src/config.h 2008-07-03 15:13:23.000000000 -0600 +@@ -14,31 +14,31 @@ + #endif + + // Configure as a coreboot payload. +-#define CONFIG_COREBOOT 0 ++#define CONFIG_COREBOOT 1 + + // Control how verbose debug output is. +-#define CONFIG_DEBUG_LEVEL 1 ++#define CONFIG_DEBUG_LEVEL 6 + + // Send debugging information to serial port +-#define CONFIG_DEBUG_SERIAL 0 ++#define CONFIG_DEBUG_SERIAL 1 + +-#define CONFIG_FLOPPY_SUPPORT 1 ++#define CONFIG_FLOPPY_SUPPORT 0 + #define CONFIG_PS2_MOUSE 1 + #define CONFIG_ATA 1 + #define CONFIG_KBD_CALL_INT15_4F 1 + #define CONFIG_CDROM_BOOT 1 + #define CONFIG_CDROM_EMU 1 + // Support generation of a PIR table in 0xf000 segment (for emulators) +-#define CONFIG_PIRTABLE 1 ++#define CONFIG_PIRTABLE 1 + // Support generation of ACPI PIR tables (for emulators) +-#define CONFIG_ACPI 1 ++#define CONFIG_ACPI 1 + // Support int 1a/b1 PCI BIOS calls +-#define CONFIG_PCIBIOS 1 ++#define CONFIG_PCIBIOS 1 + // Support int 15/53 APM BIOS calls +-#define CONFIG_APMBIOS 1 ++#define CONFIG_APMBIOS 1 + + /* define it if the (emulated) hardware supports SMM mode */ +-#define CONFIG_USE_SMM 1 ++#define CONFIG_USE_SMM 1 + + /* if true, put the MP float table and ACPI RSDT in EBDA and the MP + table in RAM. Unfortunately, Linux has bugs with that, so we prefer diff --git a/packages/seabios/seabios.mk b/packages/seabios/seabios.mk new file mode 100644 index 0000000..1a74da6 --- /dev/null +++ b/packages/seabios/seabios.mk @@ -0,0 +1,64 @@ +SEABIOS_URL=git://git.linuxtogo.org/home/kevin/seabios/ +SEABIOS_TAG=master + +SEABIOS_DIR=$(BUILD_DIR)/seabios +SEABIOS_SRC_DIR=$(SEABIOS_DIR)/seabios-$(SEABIOS_TAG) +SEABIOS_STAMP_DIR=$(SEABIOS_DIR)/stamps +SEABIOS_LOG_DIR=$(SEABIOS_DIR)/logs + +SEABIOS_PATCHES=$(PACKAGE_DIR)/seabios/hardcode.diff + +ifeq ($(CONFIG_VERBOSE),y) +SEABIOS_FETCH_LOG=/dev/stdout +SEABIOS_BUILD_LOG=/dev/stdout +else +SEABIOS_BUILD_LOG=$(SEABIOS_LOG_DIR)/build.log +SEABIOS_FETCH_LOG=$(SEABIOS_LOG_DIR)/fetch.log +endif + +SEABIOS_TARBALL=seabios.tar + +ifeq ($(shell if [ -f $(PACKAGE_DIR)/seabios/conf/customconfig--$(PAYLOAD)--$(COREBOOT_VENDOR)-$(COREBOOT_BOARD) ]; then echo 1; fi),1) + SEABIOS_CONFIG = customconfig--$(PAYLOAD)--$(COREBOOT_VENDOR)-$(COREBOOT_BOARD) +endif + +$(SOURCE_DIR)/$(SEABIOS_TARBALL): | $(SEABIOS_STAMP_DIR) $(SEABIOS_LOG_DIR) + @ echo "Fetching SeaBIOS..." + @ mkdir -p $(SOURCE_DIR) + @ $(BIN_DIR)/fetchgit.sh $(SEABIOS_URL) $(SOURCE_DIR)/seabios $(SEABIOS_TAG) $(SOURCE_DIR)/$(SEABIOS_TARBALL) seabios > $(SEABIOS_FETCH_LOG) 2>&1 + +$(SEABIOS_STAMP_DIR)/.unpacked: $(SOURCE_DIR)/$(SEABIOS_TARBALL) | $(SEABIOS_STAMP_DIR) $(SEABIOS_DIR) $(SEABIOS_LOG_DIR) + @ echo "Unpacking SeaBIOS..." + @ tar -C $(SEABIOS_DIR) -xf $(SOURCE_DIR)/$(SEABIOS_TARBALL) + @ touch $@ + +$(SEABIOS_STAMP_DIR)/.patched: $(SEABIOS_STAMP_DIR)/.unpacked + @ echo "Patching mkelfimage..." + @ $(BIN_DIR)/doquilt.sh $(SEABIOS_SRC_DIR) $(SEABIOS_PATCHES) + @ touch $@ + +$(SEABIOS_SRC_DIR)/out/bios.bin: $(SEABIOS_STAMP_DIR)/.patched + @ echo "Building SeaBIOS..." + @ make -C $(SEABIOS_SRC_DIR) > $(SEABIOS_BUILD_LOG) 2>&1 + +$(SEABIOS_STAMP_DIR) $(SEABIOS_LOG_DIR): + @ mkdir -p $@ + +$(SEABIOS_STAMP_DIR)/.copied: $(SEABIOS_SRC_DIR)/out/bios.bin + @ mkdir -p $(shell dirname $(PAYLOAD_ELF)) + @ cp $(SEABIOS_SRC_DIR)/out/bios.bin.elf $(PAYLOAD_ELF) + @ touch $@ + +seabios: $(SEABIOS_STAMP_DIR)/.copied + @ cp $(SEABIOS_SRC_DIR)/out/bios.bin.elf $(SEABIOS_SRC_DIR)/seabios.elf + +seabios-clean: + @ echo "Cleaning SeaBIOS..." + @ rm -f $(SEABIOS_STAMP_DIR)/.copied +ifneq ($(wildcard $(SEABIOS_SRC_DIR)/Makefile),) + @ $(MAKE) -C $(SEABIOS_SRC_DIR) clean > /dev/null 2>&1 +endif + +seabios-distclean: + @ rm -rf $(SEABIOS_DIR)/* + -- 2.11.4.GIT