Dockerfile
1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM ubuntu:16.04
RUN locale-gen ko_KR.UTF-8
ENV LANG ko_KR.UTF-8
ENV LC_ALL ko_KR.UTF-8
RUN sed -ri 's/\/archive\.ubuntu\.com/\/kr\.archive\.ubuntu\.com/g' /etc/apt/sources.list
RUN \
apt-get update && \
apt-get -y install \
curl sudo \
git-core build-essential gcc-arm-none-eabi libssl-dev \
sed binutils patch gzip bzip2 perl tar cpio python unzip rsync wget \
libz3-dev libncurses5-dev pkg-config libusb-1.0-0-dev \
bc lzop u-boot-tools vim flex bison \
&& \
rm -rf /var/lib/apt/lists/*
CMD ["/bin/bash"]
ADD toolchain/arm-buildroot-linux-gnueabihf-4.9.3.tar.gz /opt
env WORK_TOP_PATH /work
env FA_COMPANY falinux
env FA_CHIPSET imx6s
env FA_PRODUCT prime_oven
env BR_TOOLCHAIN_PREFIX arm-buildroot-linux-gnueabihf
env BR_TOOLCHAIN_PATH /opt/toolchain/${FA_CHIPSET}/${FA_PRODUCT}
env CROSS_COMPILE ${BR_TOOLCHAIN_PREFIX}-
env ARCH arm
env PATH $PATH:${BR_TOOLCHAIN_PATH}/usr/bin
env WORK_LD_LIBRARY_PATH ${BR_TOOLCHAIN_PATH}/usr/lib
WORKDIR /work