Introduce target-specific LDFLAGS, the same way we have CFLAGS for the target.
It seems to be helping gcc somewhat into telling the correct endianness to ld that sticks with little endian even when the target is big (eg armeb-unknown-linux-uclibcgnueabi).
There's still work to do, especially finish the gcc part that is not in this commit.
/trunk/scripts/functions | 9 7 2 0 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
5 prompt "Get kernel headers from:"
7 config KERNEL_LINUX_HEADERS_INSTALL
9 prompt "kernel's 'headers_install'"
11 This will make use of the new headers_install rule in recent kernels.
12 This is most probably what you want to use.
14 config KERNEL_LINUX_HEADERS_SANITISED
16 prompt "Mazur's sanitized headers (OBSOLETE)"
18 select KERNEL_LINUX_NEEDS_CONFIG
20 M. Mazur used to maintain a tree of sanitised headers, but it is now
21 obsoleted by the headers_install rule (above), and has not seen any
24 config KERNEL_LINUX_HEADERS_COPY
26 prompt "pure kernel headers (REALLY OBSOLETE)"
28 select KERNEL_LINUX_NEEDS_CONFIG
30 This will simply copy the kernel headers to the toolchain.
32 You do NOT want this. It's badly broken because it leaks kernel internals
35 config KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR
37 prompt "Use custom directory"
39 If you have some kernel headers lying around, you can enter the path
46 default "linux" if ! KERNEL_LINUX_HEADERS_SANITISED
47 default "linux-libc-headers" if KERNEL_LINUX_HEADERS_SANITISED
49 config KERNEL_VERSION_SEE_EXTRAVERSION
51 prompt "See extra versions"
53 depends on KERNEL_LINUX_HEADERS_COPY || KERNEL_LINUX_HEADERS_INSTALL
55 See extra versions (kernel with 4 numbers, eg 2.6.19.1).
57 If you say 'no', you'll only see sub-level, 3-digit versions.
58 If you say 'yes', you'll see far more versions!
60 It is recommended that you say 'no', unless you _*know*_
61 that an extra version fixes a headers bug.
63 if KERNEL_LINUX_HEADERS_INSTALL
64 source config/kernel/linux_headers_install.in
67 if KERNEL_LINUX_HEADERS_COPY
68 source config/kernel/linux_headers_copy.in
71 if KERNEL_LINUX_HEADERS_SANITISED
72 source config/kernel/linux_headers_sanitised.in
75 config KERNEL_LINUX_HEADERS_CUSTOM_DIR
77 prompt "Where are those custom headers?"
78 depends on KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR
80 Enter the base directory where the headers are to be found.
82 Eg. if the headers are in /some/place/include, then enter /some/place.
83 This is the same path you entered when you typed:
84 make INSTALL_HDR_PATH=/some/place headers_install
86 if ! KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR
90 prompt "Kernel verbosity:"
91 default KERNEL_LINUX_VERBOSITY_0
93 config KERNEL_LINUX_VERBOSITY_0
97 Print simplified command lines.
99 config KERNEL_LINUX_VERBOSITY_1
101 prompt "Full commands"
103 Print full command lines.
105 config KERNEL_LINUX_VERBOSITY_2
107 prompt "Exec reasons"
109 Print the reasons why a make target is rebuild.
113 config KERNEL_LINUX_VERBOSE_LEVEL
115 default 0 if KERNEL_LINUX_VERBOSITY_0
116 default 1 if KERNEL_LINUX_VERBOSITY_1
117 default 2 if KERNEL_LINUX_VERBOSITY_2
119 config KERNEL_LINUX_NEEDS_CONFIG
123 config KERNEL_LINUX_CONFIG_FILE
125 prompt "Configuration file"
126 depends on KERNEL_LINUX_NEEDS_CONFIG
129 Path to a kernel configuration file.
131 If you don't provide one, then the default configuration for
132 your target will be used.