Skip to content

Commit

Permalink
toolchain: strip executables
Browse files Browse the repository at this point in the history
Dockerfile: update
  • Loading branch information
hanwckf committed Oct 6, 2020
1 parent 9552f1e commit abeb21d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ MAINTAINER hanwckf <hanwckf@vip.qq.com>

ENV DEBIAN_FRONTEND noninteractive

#RUN sed -i 's#http://archive.ubuntu.com#http://mirrors.huaweicloud.com#' /etc/apt/sources.list
#RUN sed -i 's#http://security.ubuntu.com#http://mirrors.huaweicloud.com#' /etc/apt/sources.list
ARG APT_MIRROR_URL
RUN if test -n "$APT_MIRROR_URL"; then \
sed -i "s#http://archive.ubuntu.com#$APT_MIRROR_URL#; \
s#http://security.ubuntu.com#$APT_MIRROR_URL#; \
s#http://ports.ubuntu.com#$APT_MIRROR_URL#" \
/etc/apt/sources.list; fi

RUN apt -y -q update && apt -y -q upgrade && \
apt install -y -q unzip libtool-bin curl cmake gperf gawk flex bison htop \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ CT_ALLOW_BUILD_AS_ROOT=y
CT_ALLOW_BUILD_AS_ROOT_SURE=y
CT_LOCAL_TARBALLS_DIR="${CT_TOP_DIR}/dl"
CT_PREFIX_DIR="${CT_TOP_DIR}/toolchain-3.4.x"
CT_DOWNLOAD_AGENT_CURL=y
# CT_INSTALL_LICENSES is not set
# CT_PREFIX_DIR_RO is not set
CT_STRIP_TARGET_TOOLCHAIN_EXECUTABLES=y
CT_DOWNLOAD_AGENT_CURL=y
CT_EXTRA_CFLAGS_FOR_HOST="-O2"
# CT_LOG_TO_FILE is not set
CT_ARCH_MIPS=y
Expand Down

0 comments on commit abeb21d

Please sign in to comment.