[LinuxBIOS] r49 - in buildrom-devel: packages/kernel packages/memtest packages/uclibc scripts
svn at openbios.org
svn at openbios.org
Thu Oct 25 00:35:08 CEST 2007
Author: jcrouse
Date: 2007-10-25 00:35:08 +0200 (Thu, 25 Oct 2007)
New Revision: 49
Modified:
buildrom-devel/packages/kernel/kernel.inc
buildrom-devel/packages/memtest/memtest.mk
buildrom-devel/packages/uclibc/uclibc.mk
buildrom-devel/scripts/Build.settings
Log:
[BUILDROM] Fix building 32 bit on 64 bit hosts
Re-adjust my previous patch a little bit, its not smart to be passing the
-m32 flag into the kernel, it already knows how to do the right thing (TM).
So pull the 32 bit flags from the default CC, AS and LD variable and pass
them in individually. Also, add quotes to the variables passed into the
kernel, since thats obviously buggy.
Signed-off-by: Jordan Crouse <jordan.crouse at amd.com>
Acked-by: Ward Vandewege <ward at gnu.org>
Modified: buildrom-devel/packages/kernel/kernel.inc
===================================================================
--- buildrom-devel/packages/kernel/kernel.inc 2007-10-24 21:45:06 UTC (rev 48)
+++ buildrom-devel/packages/kernel/kernel.inc 2007-10-24 22:35:08 UTC (rev 49)
@@ -45,7 +45,7 @@
$(KERNEL_SRC_DIR)/arch/i386/boot/bzImage: $(KERNEL_SRC_DIR)/.config
@ echo "Building kernel..."
@ $(MAKE) -C $(KERNEL_SRC_DIR) ARCH=i386 \
- KERNEL_CC=$(CC) KERNEL_LD=$(LD) > $(KERNEL_BUILD_LOG) 2>&1
+ KERNEL_CC="$(CC)" KERNEL_LD="$(LD)" > $(KERNEL_BUILD_LOG) 2>&1
$(OUTPUT_DIR)/bzImage: $(KERNEL_SRC_DIR)/arch/i386/boot/bzImage
@ install -d $(OUTPUT_DIR)
Modified: buildrom-devel/packages/memtest/memtest.mk
===================================================================
--- buildrom-devel/packages/memtest/memtest.mk 2007-10-24 21:45:06 UTC (rev 48)
+++ buildrom-devel/packages/memtest/memtest.mk 2007-10-24 22:35:08 UTC (rev 49)
@@ -36,7 +36,7 @@
$(MEMTEST_SRC_DIR)/memtest: $(MEMTEST_CONFIG_TARGET)
@ echo "Building memtest..."
- @ $(MAKE) -C $(MEMTEST_SRC_DIR) AS="$(AS)" CC="$(CC)" LD="$(LD)" CCFLAGS="$(CFLAGS)" memtest > $(MEMTEST_BUILD_LOG) 2>&1
+ @ $(MAKE) -C $(MEMTEST_SRC_DIR) AS="$(AS) $(CROSS_ASFLAGS)" CC="$(CC) $(CROSS_CFLAGS)" LD="$(LD) $(CROSS_LDFLAGS)" CCFLAGS="$(CFLAGS)" memtest > $(MEMTEST_BUILD_LOG) 2>&1
$(MEMTEST_STAMP_DIR) $(MEMTEST_LOG_DIR):
@ mkdir -p $@
Modified: buildrom-devel/packages/uclibc/uclibc.mk
===================================================================
--- buildrom-devel/packages/uclibc/uclibc.mk 2007-10-24 21:45:06 UTC (rev 48)
+++ buildrom-devel/packages/uclibc/uclibc.mk 2007-10-24 22:35:08 UTC (rev 49)
@@ -32,7 +32,7 @@
@ echo "Building uclibc..."
@ ( unset CFLAGS; unset LDFLAGS; \
$(MAKE) -C $(UCLIBC_SRC_DIR) TARGET_ARCH="$(UCLIBC_ARCH)" \
- CC="$(CC)" LD="$(LD)" \
+ CC="$(CC) $(CROSS_CFLAGS)" LD="$(LD) $(CROSS_LDFLAGS)" \
HOSTCC="$(HOST_CC)" KERNEL_SOURCE="$(KERNEL_SRC_DIR)" \
RUNTIME_PREFIX="/" \
SHARED_LIB_LOADER_PATH="/lib" \
Modified: buildrom-devel/scripts/Build.settings
===================================================================
--- buildrom-devel/scripts/Build.settings 2007-10-24 21:45:06 UTC (rev 48)
+++ buildrom-devel/scripts/Build.settings 2007-10-24 22:35:08 UTC (rev 49)
@@ -30,11 +30,7 @@
ifeq ($(BUILD_ARCH),x86_64)
ifneq ($(BUILD_ARCH), $(TARGET_ARCH))
-CC += -m32
-AS += --32
-LD += -melf_i386
-
-CROSS_ASFLAGS=-m32
+CROSS_ASFLAGS=--32
CROSS_CFLAGS=-m32
CROSS_LDFLAGS=-melf_i386
More information about the coreboot
mailing list