Integrate Fuloong firmware port into build system and grub-mkimage

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-01-24 02:20:04 +01:00
parent dc1c21edb7
commit a9fa2a22d7
4 changed files with 108 additions and 48 deletions

View file

@ -329,6 +329,14 @@ image = {
enable = mips_yeeloong;
};
image = {
name = fwstart_fuloong;
mips_yeeloong = boot/mips/yeeloong/fuloong.S;
objcopyflags = '-O binary';
ldflags = '-static-libgcc -lgcc -Wl,-N,-S,-Ttext,0xbfc00000,-Bstatic';
enable = mips_yeeloong;
};
module = {
name = trig;
common_nodist = trigtables.c;

View file

@ -0,0 +1,2 @@
#define FULOONG 1
#include "fwstart.S"

View file

@ -26,8 +26,6 @@
#include <grub/cs5536.h>
#include <grub/smbus.h>
/* #define FULOONG 1 */
#ifdef FULOONG
#define GRUB_MACHINE_SERIAL_PORT GRUB_MACHINE_SERIAL_PORT2
#define GRUB_MACHINE_SERIAL_DIVISOR_115200 GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200