Skip to content
Permalink
Browse files

target sync to openwrt

  • Loading branch information
zyxmon committed Jan 6, 2020
1 parent 7ba5156 commit c14ca375b79a12029efafdae31f0f48b89933c1e
Showing with 17 additions and 22 deletions.
  1. +2 −7 target/Config.in
  2. +1 −1 target/imagebuilder/Makefile
  3. +14 −14 target/toolchain/files/wrapper.sh
@@ -37,7 +37,8 @@ config USB_GADGET_SUPPORT
bool

config RTC_SUPPORT
bool
tristate
depends on m

config BIG_ENDIAN
bool
@@ -129,12 +130,6 @@ config armeb
select BIG_ENDIAN
bool

config arm_v4
bool

config arm_v5
bool

config arm_v6
bool

@@ -86,7 +86,7 @@ endif
(cd $(PKG_BUILD_DIR); find staging_dir/host/bin/ $(IB_LDIR)/scripts/dtc/ -type f | \
$(XARGS) $(SCRIPT_DIR)/bundle-libraries.sh $(PKG_BUILD_DIR)/staging_dir/host)
STRIP=sstrip $(SCRIPT_DIR)/rstrip.sh $(PKG_BUILD_DIR)/staging_dir/host/bin/
$(TAR) -cf - -C $(BUILD_DIR) $(IB_NAME) | xz -zc -7e > $@
$(TAR) -cf - -C $(BUILD_DIR) $(IB_NAME) | xz -T$(if $(filter 1,$(NPROC)),2,0) -zc -7e > $@

download:
prepare:
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

# 2009 (C) Copyright Industrie Dial Face S.p.A.
# Luigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com>
@@ -15,10 +15,10 @@
#

PROGNAME=$0
REALNAME=`readlink -f $0`
REALNAME=$(readlink -f $0)

REALNAME_BASE=`basename $REALNAME`
REALNAME_DIR=`dirname $REALNAME`
REALNAME_BASE=$(basename $REALNAME)
REALNAME_DIR=$(dirname $REALNAME)

TARGET_FUNDAMENTAL_ASFLAGS=''
TARGET_FUNDAMENTAL_CFLAGS=''
@@ -48,22 +48,22 @@ export GCC_HONOUR_COPTS

TOOLCHAIN_SYSROOT="$TOOLCHAIN_BIN_DIR/../.."
if [ ! -d "$TOOLCHAIN_SYSROOT" ]; then
echo "Error: Unable to determine sysroot (looking for $TOOLCHAIN_SYSROOT)!" >&2
exit 1
echo "Error: Unable to determine sysroot (looking for $TOOLCHAIN_SYSROOT)!" >&2
exit 1
fi

# -Wl,--dynamic-linker=$TOOLCHAIN_SYSROOT/lib/ld-uClibc.so.0
# --dynamic-linker=$TOOLCHAIN_SYSROOT/lib/ld-uClibc.so.0

case $TOOLCHAIN_PLATFORM in
gnu|glibc|uclibc|musl)
GCC_SYSROOT_FLAGS="--sysroot=$TOOLCHAIN_SYSROOT -Wl,-rpath=$TOOLCHAIN_SYSROOT/lib:$TOOLCHAIN_SYSROOT/usr/lib"
LD_SYSROOT_FLAGS="-rpath=$TOOLCHAIN_SYSROOT/lib:$TOOLCHAIN_SYSROOT/usr/lib"
;;
*)
GCC_SYSROOT_FLAGS=""
LD_SYSROOT_FLAGS=""
;;
gnu|glibc|uclibc|musl)
GCC_SYSROOT_FLAGS="--sysroot=$TOOLCHAIN_SYSROOT -Wl,-rpath=$TOOLCHAIN_SYSROOT/lib:$TOOLCHAIN_SYSROOT/usr/lib"
LD_SYSROOT_FLAGS="-rpath=$TOOLCHAIN_SYSROOT/lib:$TOOLCHAIN_SYSROOT/usr/lib"
;;
*)
GCC_SYSROOT_FLAGS=""
LD_SYSROOT_FLAGS=""
;;
esac

#

0 comments on commit c14ca37

Please sign in to comment.
You can’t perform that action at this time.