1
static char * fnsp = " -fno-stack-protector";
4
#define HAVE_KERNEL_FLAGS
6
check_sysdep (conf_t * conf, struct utsname *un)
15
exact_architectures = 1; /* Compile only the drivers with targetcpu=arm */
18
if ((p=getenv("CROSSCOMPILE"))!=NULL)
20
if (strcmp(p, "uclinux-blackfin")==0)
23
targetcc="uclinux-blackfin-gcc";
26
else if (strcmp(p, "vxworks-x86")==0)
28
vxworks_setup(conf, "386");
34
* Check if cc supports -fno-stack-protector
36
sprintf (cmd, "%s -c -o srcconf.o -fno-stack-protector setup/srcconf.c >/dev/null 2>&1", targetcc);
42
if (do_warning_checks)
43
strcpy(conf->OSflags, "-Wall");
44
strcpy (conf->ccomp, targetcc);
45
strcpy (conf->cplusplus, "g++ -fno-rtti -fno-exceptions -I.");
46
strcpy (conf->platform, "i86pc");
50
add_kernel_flags (FILE * f)
52
# if defined(__x86_64__)
54
"CFLAGS += -O3 -fno-common -mcmodel=kernel -mno-red-zone -fno-asynchronous-unwind-tables -ffreestanding%s\n", fnsp);
57
if (getenv ("NO_REGPARM") == NULL)
60
"CFLAGS += -O3 -fno-common -ffreestanding -mregparm=3 -DUSE_REGPARM%s\n", fnsp);
64
fprintf (f, "CFLAGS += -O3 -fno-common -ffreestanding -DNO_REGPARM%s\n", fnsp);
67
fprintf (f, "CFLAGS += -O3 -fno-common -ffreestanding%s\n", fnsp);