build: clean up sitefiles, make them per-arch

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45090
owl
Felix Fietkau 2015-03-28 13:38:34 +00:00
parent 693e5aae41
commit 74ca7e9af3
65 changed files with 33 additions and 264 deletions

View File

@ -75,10 +75,10 @@ endif
# check prerequisites before starting to build
prereq: $(target/stamp-prereq) tmp/.prereq_packages
@if [ ! -f "$(INCLUDE_DIR)/site/$(REAL_GNU_TARGET_NAME)" ]; then \
echo 'ERROR: Missing site config for target "$(REAL_GNU_TARGET_NAME)" !'; \
@if [ ! -f "$(INCLUDE_DIR)/site/$(ARCH)" ]; then \
echo 'ERROR: Missing site config for architecture "$(ARCH)" !'; \
echo ' The missing file will cause configure scripts to fail during compilation.'; \
echo ' Please provide a "$(INCLUDE_DIR)/site/$(REAL_GNU_TARGET_NAME)" file and restart the build.'; \
echo ' Please provide a "$(INCLUDE_DIR)/site/$(ARCH)" file and restart the build.'; \
exit 1; \
fi

View File

@ -127,7 +127,7 @@ include $(INCLUDE_DIR)/package-bin.mk
include $(INCLUDE_DIR)/autotools.mk
override MAKEFLAGS=
CONFIG_SITE:=$(INCLUDE_DIR)/site/$(REAL_GNU_TARGET_NAME)
CONFIG_SITE:=$(INCLUDE_DIR)/site/$(ARCH)
CUR_MAKEFILE:=$(filter-out Makefile,$(firstword $(MAKEFILE_LIST)))
SUBMAKE:=$(NO_TRACE_MAKE) $(if $(CUR_MAKEFILE),-f $(CUR_MAKEFILE))
PKG_CONFIG_PATH=$(STAGING_DIR)/usr/lib/pkgconfig:$(STAGING_DIR)/usr/share/pkgconfig

View File

@ -1,3 +1,5 @@
#!/bin/sh
. $TOPDIR/include/site/linux
ac_cv_c_littleendian=${ac_cv_c_littleendian=yes}
ac_cv_c_bigendian=${ac_cv_c_bigendian=no}

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/aarch64-linux
. $TOPDIR/include/site/linux-gnu

View File

@ -1,3 +1,5 @@
#!/bin/sh
. $TOPDIR/include/site/linux
ac_cv_c_littleendian=${ac_cv_c_littleendian=no}
ac_cv_c_bigendian=${ac_cv_c_bigendian=yes}

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/aarch64-linux
. $TOPDIR/include/site/linux-gnu

View File

@ -1,3 +1,5 @@
#!/bin/sh
. $TOPDIR/include/site/linux
ac_cv_c_littleendian=${ac_cv_c_littleendian=yes}
ac_cv_c_bigendian=${ac_cv_c_bigendian=no}

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/arm-linux
. $TOPDIR/include/site/linux-gnu

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/arm-linux
. $TOPDIR/include/site/linux-gnu

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/arm-linux
. $TOPDIR/include/site/linux-uclibc

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/arm-linux
. $TOPDIR/include/site/linux-uclibc

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/arm-linux
. $TOPDIR/include/site/linux-uclibc

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/arm-linux
. $TOPDIR/include/site/linux-uclibc

View File

@ -1,3 +1,5 @@
#!/bin/sh
. $TOPDIR/include/site/linux
ac_cv_c_littleendian=${ac_cv_c_littleendian=no}
ac_cv_c_bigendian=${ac_cv_c_bigendian=yes}

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/armeb-linux
. $TOPDIR/include/site/linux-gnu

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/armeb-linux
. $TOPDIR/include/site/linux-gnu

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/armeb-linux
. $TOPDIR/include/site/linux-uclibc

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/armeb-linux
. $TOPDIR/include/site/linux-uclibc

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/armeb-linux
. $TOPDIR/include/site/linux-uclibc

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/armeb-linux
. $TOPDIR/include/site/linux-uclibc

View File

@ -1,3 +1,5 @@
#!/bin/sh
. $TOPDIR/include/site/linux
ac_cv_c_littleendian=${ac_cv_c_littleendian=yes}
ac_cv_c_bigendian=${ac_cv_c_bigendian=no}

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/i486-linux
. $TOPDIR/include/site/linux-gnu

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/i486-linux
. $TOPDIR/include/site/linux-uclibc

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/i486-linux
. $TOPDIR/include/site/linux-uclibc

3
include/site/i686 Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
. $TOPDIR/include/site/i486

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/i686-linux
. $TOPDIR/include/site/linux-gnu

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/i686-linux
. $TOPDIR/include/site/linux-uclibc

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/i686-linux
. $TOPDIR/include/site/linux-uclibc

View File

@ -1 +0,0 @@
. $TOPDIR/include/site/linux

View File

@ -1 +0,0 @@
. $TOPDIR/include/site/linux

View File

@ -1,3 +1,5 @@
#!/bin/sh
. $TOPDIR/include/site/linux
ac_cv_c_littleendian=${ac_cv_c_littleendian=no}
ac_cv_c_bigendian=${ac_cv_c_bigendian=yes}

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/m68k-linux
. $TOPDIR/include/site/linux-gnu

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/m68k-linux
. $TOPDIR/include/site/linux-gnu

View File

@ -1,3 +1,5 @@
#!/bin/sh
. $TOPDIR/include/site/linux
ac_cv_c_littleendian=${ac_cv_c_littleendian=no}
ac_cv_c_bigendian=${ac_cv_c_bigendian=yes}

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/mips-linux
. $TOPDIR/include/site/linux-gnu

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/mips-linux
. $TOPDIR/include/site/linux-gnu

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/mips-linux
. $TOPDIR/include/site/linux-uclibc

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/mips-linux
. $TOPDIR/include/site/linux-uclibc

View File

@ -1,3 +1,5 @@
#!/bin/sh
. $TOPDIR/include/site/linux
ac_cv_c_littleendian=${ac_cv_c_littleendian=no}
ac_cv_c_bigendian=${ac_cv_c_bigendian=yes}

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/mips64-linux
. $TOPDIR/include/site/linux-gnu

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/mips64-linux
. $TOPDIR/include/site/linux-uclibc

View File

@ -1,3 +1,5 @@
#!/bin/sh
. $TOPDIR/include/site/linux
ac_cv_c_littleendian=${ac_cv_c_littleendian=yes}
ac_cv_c_bigendian=${ac_cv_c_bigendian=no}

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/mips64-linux
. $TOPDIR/include/site/linux-gnu

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/mips64-linux
. $TOPDIR/include/site/linux-uclibc

View File

@ -1,3 +1,5 @@
#!/bin/sh
. $TOPDIR/include/site/linux
ac_cv_c_littleendian=${ac_cv_c_littleendian=yes}
ac_cv_c_bigendian=${ac_cv_c_bigendian=no}

View File

@ -1,28 +0,0 @@
ac_cv_c_littleendian=${ac_cv_c_littleendian=yes}
ac_cv_c_bigendian=${ac_cv_c_bigendian=no}
ac_cv_sizeof___int64=0
ac_cv_sizeof_char=1
ac_cv_sizeof_int=4
ac_cv_sizeof_int16_t=2
ac_cv_sizeof_int32_t=4
ac_cv_sizeof_int64_t=8
ac_cv_sizeof_long_int=4
ac_cv_sizeof_long_long=8
ac_cv_sizeof_long=4
ac_cv_sizeof_off_t=8
ac_cv_sizeof_short_int=2
ac_cv_sizeof_short=2
ac_cv_sizeof_size_t=4
ac_cv_sizeof_ssize_t=4
ac_cv_sizeof_u_int16_t=2
ac_cv_sizeof_u_int32_t=4
ac_cv_sizeof_u_int64_t=8
ac_cv_sizeof_uint16_t=2
ac_cv_sizeof_uint32_t=4
ac_cv_sizeof_uint64_t=8
ac_cv_sizeof_unsigned_int=4
ac_cv_sizeof_unsigned_long=4
ac_cv_sizeof_unsigned_long_long=8
ac_cv_sizeof_unsigned_short=2
ac_cv_sizeof_void_p=4

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/mipsel-linux
. $TOPDIR/include/site/linux-gnu

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/mipsel-linux
. $TOPDIR/include/site/linux-gnu

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/mipsel-linux
. $TOPDIR/include/site/linux-uclibc

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/mipsel-linux
. $TOPDIR/include/site/linux-uclibc

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/mipsel-linux
. $TOPDIR/include/site/linux-uclibc
ac_cv_header_sys_inotify_h=no

View File

@ -1,3 +1,5 @@
#!/bin/sh
. $TOPDIR/include/site/linux
ac_cv_c_littleendian=${ac_cv_c_littleendian=no}
ac_cv_c_bigendian=${ac_cv_c_bigendian=yes}

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/powerpc-linux
. $TOPDIR/include/site/linux-gnu

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/powerpc-linux
. $TOPDIR/include/site/linux-gnu

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/powerpc-linux
. $TOPDIR/include/site/linux-uclibc

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/powerpc-linux
. $TOPDIR/include/site/linux-uclibc

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/powerpc-linux
. $TOPDIR/include/site/linux-uclibc

View File

@ -1,3 +1,5 @@
#!/bin/sh
. $TOPDIR/include/site/linux
ac_cv_c_littleendian=${ac_cv_c_littleendian=no}
ac_cv_c_bigendian=${ac_cv_c_bigendian=yes}

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/sparc-linux
. $TOPDIR/include/site/linux-gnu

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/sparc-linux
. $TOPDIR/include/site/linux-gnu

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/sparc-linux
. $TOPDIR/include/site/linux

View File

@ -1,3 +1,5 @@
#!/bin/sh
. $TOPDIR/include/site/linux
ac_cv_c_littleendian=${ac_cv_c_littleendian=yes}
ac_cv_c_bigendian=${ac_cv_c_bigendian=no}

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/x86_64-linux
. $TOPDIR/include/site/linux-gnu

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/x86_64-linux
. $TOPDIR/include/site/linux-uclibc

View File

@ -1,5 +0,0 @@
#!/bin/sh
. $TOPDIR/include/site/x86_64-linux
. $TOPDIR/include/site/linux-uclibc