Skip to contentSkip to conversation

TARGET_ARCH should be a weak assignment no x86.conf

PATCH Jader H. Silva 3 participants 3 messages Mar 17, 2009

lore
Share & tools
lore
#0 lore raw

In conf/machine/x86.conf TARGET_ARCH is assigned as i486:

# i386 doesn't work with NTPL, see
http://ecos.sourceware.org/ml/libc-ports/2006-03/msg00030.html
TARGET_ARCH = "i486"

But according to url page text, it should be i486 or greater, and I would like to compile my target for i586.

Ideally, it should check for TARGET_ARCH=i386 or TARGET_ARCH= and set itself to "i486", otherwise leave TARGET_ARCH unmodified, but I don't know if this is possible.

I'm using a weak assignment to fix it. Patch is attached.

Att.

Jader H. Silva
[email protected]
Depto. de desenvolvimento
2MI Tecnologia

From f755e1fd25fba568f5006c4534044d2bd86e8a20 Mon Sep 17 00:00:00 2001
From: root <[email protected]>
Date: Tue, 17 Mar 2009 09:46:03 -0300
Subject: [PATCH] Make TARGET_ARCH a weak reference in x86.conf

---
 conf/machine/x86.conf |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
conf/machine/x86.conf +1 -1
index 30eb943..31e23e1 100644
@@ -5,7 +5,7 @@
 #@DESCRIPTION: Machine configuration for a Linux running on x86 compatible machines
 
 # i386 doesn't work with NTPL, see http://ecos.sourceware.org/ml/libc-ports/2006-03/msg00030.html
-TARGET_ARCH = "i486"
+TARGET_ARCH ?= "i486"
 
 PREFERRED_PROVIDER_virtual/kernel = "linux"
 PREFERRED_PROVIDER_virtual/xserver = "xserver-kdrive"
Signature · 1 line
1.5.4.3
#1 lore raw

Dnia wtorek, 17 marca 2009 o 13:52:38 Jader H. Silva napisał(a):

Quoted 8 lines

In conf/machine/x86.conf TARGET_ARCH is assigned as i486:

# i386 doesn't work with NTPL, see
http://ecos.sourceware.org/ml/libc-ports/2006-03/msg00030.html
TARGET_ARCH = "i486"

But according to url page text, it should be i486 or greater, and I would like to compile my target for i586.

Use "i586-generic" as MACHINE maybe? I think that we can consider renaming "x86" to "i486-generic" to clarify.

Regards,

Signature · 3 lines
JID:      [email protected]
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
#2 lore raw
Quoted 7 lines · Marcin Juszkiewicz

Dnia wtorek, 17 marca 2009 o 13:52:38 Jader H. Silva napisał(a):

Quoted 5 lines

In conf/machine/x86.conf TARGET_ARCH is assigned as i486:

# i386 doesn't work with NTPL, see
http://ecos.sourceware.org/ml/libc-ports/2006-03/msg00030.html
TARGET_ARCH = "i486"
Quoted 5 lines
Quoted 2 lines

But according to url page text, it should be i486 or greater, and I would like to compile my target for i586.

Use "i586-generic" as MACHINE maybe? I think that we can consider renaming "x86" to "i486-generic" to clarify.

good point.

Thx

-Khem