Include the full version number in the directory paths installed.
Change the version string so that it does not break 'make', and so that it has no '/' (it would be a hell if installed directories would mirror the SVN branches... :-/ )
Do not use implicit rules for the Makefile.
Simplify and enc=hance the --local test to refuse (un)installing.
Double-quotes variables, they are based on user input.
Eye-candy in the 'compile' and install messages.
/trunk/configure | 26 14 12 0 ++++++++++---------
/trunk/Makefile.in | 83 45 38 0 +++++++++++++++++++++++++++++++++---------------------------
2 files changed, 59 insertions(+), 50 deletions(-)
1 http://www.spinics.net/lists/arm/msg08012.html
3 To: Dimitry Andric <dimitry@xxxxxxxxxx>
4 Subject: Re: Kernel Compile Error: use of old and new-style options to set FPU type
5 From: Marc Britten <maillists@xxxxxxxxxxxxxxxxx>
6 Date: Wed, 16 Jun 2004 03:03:15 -0400
7 Cc: linux-arm@xxxxxxxxxxxxxxxxxxxxxx
8 In-reply-to: <1525495613.20040615202902@andric.com>
13 >>Error: use of old and new-style options to set FPU type
14 > Try removing -Wa,-mno-fpu from CFLAGS (and possibly AFLAGS, but I'm
15 > not sure, depends on what your compiler generates by default) in
18 Just to let people know, this was successful.
29 make -f scripts/Makefile.build obj=scripts/mod
30 /opt/crosstool/arm-unknown-linux-gnu/gcc-3.4.1-glibc-2.3.3/bin/arm-unknown-linux-gnu-gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mlittle-endian -mapcs-32 -malignment-traps -msoft-float -Wa,-mno-fpu -Uarm -Os -Wdeclaration-after-statement -DKBUILD_BASENAME=empty -DKBUILD_MODNAME=empty -c -o scripts/mod/empty.o scripts/mod/empty.c
32 Error: use of old and new-style options to set FPU type
33 make[2]: *** [scripts/mod/empty.o] Error 1
34 make[1]: *** [scripts/mod] Error 2
35 make: *** [scripts] Error 2
38 --- linux-2.6.8/arch/arm/Makefile.old 2004-09-01 21:27:07.000000000 -0700
39 +++ linux-2.6.8/arch/arm/Makefile 2004-09-01 21:27:31.000000000 -0700
41 tune-$(CONFIG_CPU_V6) :=-mtune=strongarm
43 # Need -Uarm for gcc < 3.x
44 -CFLAGS +=-mapcs-32 $(arch-y) $(tune-y) $(call check_gcc,-malignment-traps,-mshort-load-bytes) -msoft-float -Wa,-mno-fpu -Uarm
45 -AFLAGS +=-mapcs-32 $(arch-y) $(tune-y) -msoft-float -Wa,-mno-fpu
46 +CFLAGS +=-mapcs-32 $(arch-y) $(tune-y) $(call check_gcc,-malignment-traps,-mshort-load-bytes) -msoft-float -Uarm
47 +AFLAGS +=-mapcs-32 $(arch-y) $(tune-y) -msoft-float
49 CHECK := $(CHECK) -D__arm__=1