|
|
@ -34,6 +34,15 @@ set_confopt |
|
|
|
|
|
|
|
case "$xpkg" in |
|
|
|
linux2[46]) |
|
|
|
# Do not modify the C compiler options, e.g. using the gcc -s |
|
|
|
# option causes this build error for x86_64: |
|
|
|
# VDSOSYM arch/x86/vdso/vdso-syms.lds |
|
|
|
# x86_64-unknown-linux-gnu-nm: arch/x86/vdso/vdso.so.dbg: no symbols |
|
|
|
# LD arch/x86/vdso/built-in.o |
|
|
|
# arch/x86/vdso/vdso-syms.lds: file not recognized: File truncated |
|
|
|
# make[1]: *** [arch/x86/vdso/built-in.o] Error 1 |
|
|
|
# make: *** [arch/x86/vdso] Error 2 |
|
|
|
export CC_WRAPPER_BYPASS=1 |
|
|
|
;; |
|
|
|
linux2[46]-source) |
|
|
|
unset splitdesc_dev |
|
|
@ -295,8 +304,10 @@ lx_config () |
|
|
|
|
|
|
|
if [[ $treever != 24* ]] ; then |
|
|
|
echo "Create symlinks and a few headers for <$lx_cpu> ... " |
|
|
|
eval $MAKE include/asm |
|
|
|
yes '' | eval $MAKE oldconfig > /dev/null |
|
|
|
# running the line below before the one above might make silentoldconfig, |
|
|
|
# which fails if standard file descriptors are not ttys |
|
|
|
eval $MAKE include/asm |
|
|
|
fi |
|
|
|
|
|
|
|
# get kernel_release |
|
|
@ -306,10 +317,8 @@ lx_config () |
|
|
|
gcc -E -I./include conftest.c | tail -n 1 \ |
|
|
|
| cut -d '"' -f 2 && rm -f conftest.c )" |
|
|
|
else |
|
|
|
make include/config/kernel.release |
|
|
|
lx_kernelrelease="$( < include/config/kernel.release )" |
|
|
|
lx_kernelrelease="$( make kernelversion )" |
|
|
|
fi |
|
|
|
|
|
|
|
lx_cleanup |
|
|
|
|
|
|
|
echo "Generic linux source configuration finished." |
|
|
@ -544,8 +553,6 @@ main_lx_headers() { |
|
|
|
# in include/asm-$lx_src_cpu. Fix by creating a symlink from include/asm |
|
|
|
# to asm-$lx_src_cpu. |
|
|
|
# Modifying the c #include directives is not strictly necessary. |
|
|
|
versionhotfix 2.6.25.10 |
|
|
|
find include/ -type f | xargs -r sed -i "/include/ s,<asm/,<asm-$lx_src_cpu/,g" |
|
|
|
mkdir -p dest/include/asm-$lx_src_cpu |
|
|
|
ln -sv asm-$lx_src_cpu dest/include/asm |
|
|
|
|
|
|
|