diff --git a/board/alix/OPENSSL b/board/alix/OPENSSL deleted file mode 100644 index 9af9af3..0000000 --- a/board/alix/OPENSSL +++ /dev/null @@ -1 +0,0 @@ -OPENSSL_TARGET="linux-generic32 386" diff --git a/board/alix/TOOLCHAIN b/board/alix/TOOLCHAIN index a1edf1e..d9cb229 100644 --- a/board/alix/TOOLCHAIN +++ b/board/alix/TOOLCHAIN @@ -5,3 +5,6 @@ MUSL_CPU="i386" GCC_EXTRACFG="--disable-libmpx --disable-libssp" LINUXPKG="linux" +LINUX_CPU="x86" +LINUX_TGT="bzImage" +OPENSSL_TARGET="linux-generic32 386" diff --git a/board/alix/bbstatic.config b/board/alix/bbstatic.config index d98efb0..6872611 100644 --- a/board/alix/bbstatic.config +++ b/board/alix/bbstatic.config @@ -1,4 +1,3 @@ -# x86 # # Automatically generated make config: don't edit # Busybox version: 1.27.2 diff --git a/board/alix/linux.config b/board/alix/linux.config index 512e778..f9e941b 100644 --- a/board/alix/linux.config +++ b/board/alix/linux.config @@ -1,5 +1,3 @@ -# x86 -# bzImage # # Automatically generated file; DO NOT EDIT. # Linux/x86 4.14.1 Kernel Configuration diff --git a/board/rpi3/OPENSSL b/board/rpi3/OPENSSL deleted file mode 100644 index aae0c7d..0000000 --- a/board/rpi3/OPENSSL +++ /dev/null @@ -1 +0,0 @@ -OPENSSL_TARGET="linux-generic32" diff --git a/board/rpi3/TOOLCHAIN b/board/rpi3/TOOLCHAIN index 02e7c14..79d40a5 100644 --- a/board/rpi3/TOOLCHAIN +++ b/board/rpi3/TOOLCHAIN @@ -5,3 +5,6 @@ MUSL_CPU="arm" GCC_EXTRACFG="--with-float=hard --with-fpu=neon-vfpv3" LINUXPKG="linux-rpi3" +LINUX_CPU="arm" +LINUX_TGT="zImage" +OPENSSL_TARGET="linux-generic32" diff --git a/board/rpi3/linux.config b/board/rpi3/linux.config index 1db3271..7467432 100644 --- a/board/rpi3/linux.config +++ b/board/rpi3/linux.config @@ -1,5 +1,3 @@ -# arm -# zImage # # Automatically generated file; DO NOT EDIT. # Linux/arm 4.9.24 Kernel Configuration diff --git a/pkg/bbstatic/build b/pkg/bbstatic/build index b938677..6e636ea 100755 --- a/pkg/bbstatic/build +++ b/pkg/bbstatic/build @@ -14,18 +14,17 @@ build() { local OUTPUT="$2" local CFGFILE="$SCRIPTDIR/board/$BOARD/bbstatic.config" - local BB_CPU=$(head -1 "$CFGFILE" | cut -b 3-) local SYSROOT="$TCDIR/$TARGET" cp "$CFGFILE" "$OUTPUT/.config" export KBUILD_OUTPUT="$OUTPUT" - make -C "$INPUT" O="$OUTPUT" ARCH="$BB_CPU" CROSS_COMPILE="${TARGET}-" oldconfig + make -C "$INPUT" O="$OUTPUT" CROSS_COMPILE="${TARGET}-" oldconfig sed -i "$OUTPUT/.config" -e 's,^CONFIG_CROSS_COMPILE=.*,CONFIG_CROSS_COMPILE="'$TARGET'-",' sed -i "$OUTPUT/.config" -e 's,^CONFIG_SYSROOT=.*,CONFIG_SYSROOT="'$SYSROOT'",' - make -C "$INPUT" O="$OUTPUT" ARCH="$BB_CPU" CROSS_COMPILE="${TARGET}-" -j $NUMJOBS + make -C "$INPUT" O="$OUTPUT" CROSS_COMPILE="${TARGET}-" -j $NUMJOBS } deploy() { diff --git a/pkg/linux/build b/pkg/linux/build index 82e9eb9..1556309 100755 --- a/pkg/linux/build +++ b/pkg/linux/build @@ -18,8 +18,6 @@ build() { local OUTPUT="$2" local CFGFILE="$SCRIPTDIR/board/$BOARD/linux.config" - local LINUX_CPU=$(head -1 "$CFGFILE" | cut -b 3-) - local LINUX_TGT=$(head -2 "$CFGFILE" | tail -1 | cut -b 3-) local INITRDLIST="$PKGDEPLOYDIR/initrd/initrd.list" export KBUILD_OUTPUT="$OUTPUT" @@ -38,10 +36,6 @@ deploy() { local BUILD="$2" local DEPLOY="$3" - local CFGFILE="$SCRIPTDIR/board/$BOARD/linux.config" - local LINUX_CPU=$(head -1 "$CFGFILE" | cut -b 3-) - local LINUX_TGT=$(head -2 "$CFGFILE" | tail -1 | cut -b 3-) - pushd $BUILD install -m 755 "arch/$LINUX_CPU/boot/$LINUX_TGT" "$DEPLOY/vmlinuz-$VERSION" popd diff --git a/pkg/linux_modules/build b/pkg/linux_modules/build index 26af0a6..945532c 100755 --- a/pkg/linux_modules/build +++ b/pkg/linux_modules/build @@ -7,7 +7,6 @@ build() { local OUTPUT="$2" local CFGFILE="$SCRIPTDIR/board/$BOARD/linux.config" - local LINUX_CPU=$(head -1 "$CFGFILE" | cut -b 3-) export KBUILD_OUTPUT="$OUTPUT" make -C "$INPUT" O="$OUTPUT" ARCH="$LINUX_CPU" CROSS_COMPILE="${TARGET}-" mrproper @@ -24,7 +23,6 @@ deploy() { local DEPLOY="$3" local CFGFILE="$SCRIPTDIR/board/$BOARD/linux.config" - local LINUX_CPU=$(head -1 "$CFGFILE" | cut -b 3-) mkdir -p "$DEPLOY/lib/modules" diff --git a/pkg/openssl/build b/pkg/openssl/build index 4881342..45521e2 100755 --- a/pkg/openssl/build +++ b/pkg/openssl/build @@ -13,15 +13,11 @@ build() { local SOURCE="$1" local BUILD="$2" - source "$SCRIPTDIR/board/$BOARD/OPENSSL" - $SOURCE/Configure --prefix=/ --cross-compile-prefix="${TARGET}-" \ --openssldir=/etc/ssl --libdir=/lib \ -DOPENSSL_NO_HEARTBEATS \ threads shared zlib-dynamic no-async $OPENSSL_TARGET - unset -v OPENSSL_TARGET - make -j 1 } diff --git a/tcpkg/linux_hdr/build b/tcpkg/linux_hdr/build index 058af16..b72e502 100755 --- a/tcpkg/linux_hdr/build +++ b/tcpkg/linux_hdr/build @@ -6,9 +6,6 @@ build() { local INPUT="$1" local OUTPUT="$2" - local CFGFILE="$SCRIPTDIR/board/$BOARD/linux.config" - local LINUX_CPU=$(head -1 "$CFGFILE" | cut -b 3-) - make -C "$INPUT" O="$OUTPUT" ARCH="$LINUX_CPU" mrproper make -C "$INPUT" O="$OUTPUT" ARCH="$LINUX_CPU" headers_check } @@ -17,9 +14,6 @@ deploy() { local INPUT="$1" local OUTPUT="$2" - local CFGFILE="$SCRIPTDIR/board/$BOARD/linux.config" - local LINUX_CPU=$(head -1 "$CFGFILE" | cut -b 3-) - export KBUILD_OUTPUT="$OUTPUT" make -C "$INPUT" O="$OUTPUT" ARCH="$LINUX_CPU" INSTALL_HDR_PATH="$TCDIR/$TARGET" headers_install }