On Thu, 2008-01-31 at 22:34 +1000, Kel Modderman wrote:I'm not sure what it means in practical terms. I understand Debian wants to override ARCH. Anyway, cross-compiling on a non-x86 platform for an x86 platform would need ARCH, and it has to be x86 for Linux 2.6.24 and newer. Why this complexity? How about this: ifeq (x86,$(ARCH-y)) I'd rather be conservative in what we accept. I don't feel good about overriding ARCH. That can break things in the kernel build system. Even if it works now, I'd rather avoid it. Also, it starts an "override war". If ARCH is specified on the command line, it would override ARCH set in get_arch.mk. Let's keep the approach "accept or bail out". Perhaps it wasn't a good idea to deal with ARCH in MadWifi, but I understand that we cannot make big changes before 0.9.4 release. I suggest that MadWifi accepts "x86" rather than tries to override it. That needs some extra logic on the TARGET side. Here's an alternative patch. Index: scripts/get_arch.mk =================================================================== --- scripts/get_arch.mk (revision 3316) +++ scripts/get_arch.mk (working copy) @@ -36,6 +36,13 @@ $(Cannot determine ARCH) endif +# Allow ARCH to be x86 +ifneq (,$(CONFIG_X86)) +ifeq (x86,$(ARCH)) +ARCH-y = $(ARCH) +endif +endif + # Don't allow ARCH to be overridden by a different value. ifeq (,$(ARCH)) ARCH = $(ARCH-y) Index: ath_hal/ah_target.inc =================================================================== --- ath_hal/ah_target.inc (revision 3316) +++ ath_hal/ah_target.inc (working copy) @@ -25,6 +25,8 @@ # Determine the target (i.e. which HAL to use). # The default is $(ARCH)-elf +TARGET-$(CONFIG_X86) = i386-elf +TARGET-$(CONFIG_X86_64) = x86_64-elf TARGET-$(CONFIG_CPU_32v4) = armv4-$(ENDIAN)-elf TARGET-$(CONFIG_CPU_MIPS32_R1) = mips1-$(ENDIAN)-elf TARGET-$(CONFIG_CPU_MIPS32_R2) = mips-$(ENDIAN)-elf -- Regards, Pavel Roskin ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Madwifi-devel mailing list Madwifi-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/madwifi-devel
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Jeff Garzik | Re: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
git: | |
| Jakub Narebski | Re: VCS comparison table |
| Junio C Hamano | Re: [PATCH] Teach remote machinery about remotes.default config variable |
| Ping Yin | why still no empty directory support in git |
| Jon Smirl | ! [rejected] master -> master (non-fast forward) |
| Richard Stallman | Real men don't attack straw men |
| Theo de Raadt | That whole "Linux stealing our code" thing |
| Diana Eichert | Re: bcw(4) is gone |
| Didier Wiroth | win32-codecs, avi and amd64 question |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Ayaz Abdulla | [PATCH] forcedeth: msi interrupts |
| KOVACS Krisztian | [PATCH 10/14] iptables socket match |
