Integrate Fuloong firmware port into build system and grub-mkimage
This commit is contained in:
parent
dc1c21edb7
commit
a9fa2a22d7
4 changed files with 108 additions and 48 deletions
|
@ -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;
|
||||
|
|
2
grub-core/boot/mips/yeeloong/fuloong.S
Normal file
2
grub-core/boot/mips/yeeloong/fuloong.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#define FULOONG 1
|
||||
#include "fwstart.S"
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue