Rev 1787 | Rev 1838 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1787 | Rev 1802 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | BFD_ARCH = i386:x86-64 |
33 | BFD_ARCH = i386:x86-64 |
34 | BFD = binary |
34 | BFD = binary |
35 | TARGET = amd64-linux-gnu |
35 | TARGET = amd64-linux-gnu |
36 | TOOLCHAIN_DIR = /usr/local/amd64/bin |
36 | TOOLCHAIN_DIR = /usr/local/amd64/bin |
37 | 37 | ||
38 | ## Make some default assumptions |
- | |
39 | # |
- | |
40 | - | ||
41 | ifndef CPU |
- | |
42 | CPU = opteron |
- | |
43 | endif |
- | |
44 | - | ||
45 | CFLAGS += -fno-unwind-tables -m64 -mcmodel=kernel -mno-red-zone |
38 | CFLAGS += -fno-unwind-tables -m64 -mcmodel=kernel -mno-red-zone |
46 | DEFS += -D_CPU=${CPU} -D__64_BITS__ |
39 | DEFS += -DMACHINE=$(MACHINE) -D__64_BITS__ |
47 | 40 | ||
48 | ## Accepted CPUs |
41 | ## Accepted CPUs |
49 | # |
42 | # |
50 | 43 | ||
51 | ifeq ($(CPU),opteron) |
44 | ifeq ($(MACHINE),opteron) |
52 | CFLAGS += -march=opteron |
45 | CFLAGS += -march=opteron |
53 | DEFS += -DFENCES=p4 |
46 | DEFS += -DFENCES=p4 |
54 | endif |
47 | endif |
55 | 48 | ||
56 | ## Own configuration directives |
49 | ## Own configuration directives |