Re: [x86 setup 13/33] Header file to produce 16-bit code with gcc

From: H. Peter Anvin
Date: Tue Jul 10 2007 - 17:54:04 EST


Adrian Bunk wrote:
>>
>> For now, I have:
>
> Can't you use the global CFLAGS and append your specific ones?
>

No. A lot of the x86-64 flags don't work with -m32.

>> CFLAGS := $(LINUXINCLUDE) -g -Os -D_SETUP -D__KERNEL__ \
>
> -g ???

Leaves debugging information in setup.elf. It is handy sometimes.

>> $(cflags-$(ARCH)) \
>> -Wall -Wstrict-prototypes \
>> -march=i386 -mregparm=3 \
>
> Why -march=i386 ?

So we can at least spit out an error message.

-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/