Skip to contentSkip to conversation

linux16: fix cmd_tbl_t as struct command

PATCH New Jean-Christophe PLAGNIOL-VILLARD 1 participant 3 messages Sep 27, 2010 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 linux16: fix cmd_tbl_t as struct command

---
 commands/linux16.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
commands/linux16.c +1 -1
index b15812f..918c937 100644
@@ -150,7 +150,7 @@ struct linux_kernel_header {
  * (setup = 'real mode code' and kernel = 'protected mode code') to their
  * default locations, switches back to real mode and runs the setup code.
  */
-static int do_linux16(cmd_tbl_t *cmdtp, int argc, char *argv[])
+static int do_linux16(struct command *cmdtp, int argc, char *argv[])
 {
 	struct linux_kernel_header *lh = NULL;
 	int rc;
Signature · 7 lines
1.7.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

PATCH 2/3 x86: add 64bit host build support

---
 arch/x86/Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
arch/x86/Makefile +2 -1
index 57c5dbc..8ab40b6 100644
@@ -5,7 +5,8 @@ machine-y := i386
 
 TEXT_BASE = $(CONFIG_TEXT_BASE)
 
-CPPFLAGS += -march=i386 -DTEXT_BASE=$(TEXT_BASE) -P
+CPPFLAGS += -march=i386 -m32 -DTEXT_BASE=$(TEXT_BASE) -P
+LDFLAGS += -m elf_i386
 
 ifndef CONFIG_MODULES
 # Add cleanup flags
Signature · 7 lines
1.7.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw

PATCH 3/3 x86: fix out of tree build support

In reply to Jean-Christophe PLAGNIOL-VILLARD
---
 scripts/setupmbr/setupmbr.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
scripts/setupmbr/setupmbr.c +2 -2
index 3cfec97..dd7f38c 100644
@@ -42,8 +42,8 @@
 #include <assert.h>
 
 /* include the info from this barebox release */
-#include "include/generated/utsrelease.h"
-#include "arch/x86/include/asm/barebox.lds.h"
+#include "../../include/generated/utsrelease.h"
+#include "../../arch/x86/include/asm/barebox.lds.h"
 
 /** define to disable integrity tests and debug messages */
 #define NDEBUG
Signature · 7 lines
1.7.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox