Commit 1761815d6f907d7f08369509f44a1fc1ce559b50

Authored by 김민수
1 parent 14ca5a8a26
Exists in master and in 2 other branches fhd, fhd-demo

몇가지 수정

- docker를 svn에서 관리
- release.sh 스크립트 추가
- 보드에 필요한 파일들 관리
docker/Dockerfile
... ... @@ -1,41 +0,0 @@
1   -FROM ubuntu:16.04
2   -
3   -RUN locale-gen ko_KR.UTF-8
4   -
5   -ENV LANG ko_KR.UTF-8
6   -ENV LC_ALL ko_KR.UTF-8
7   -
8   -RUN sed -ri 's/\/archive\.ubuntu\.com/\/kr\.archive\.ubuntu\.com/g' /etc/apt/sources.list
9   -
10   -RUN \
11   - apt-get update && \
12   - apt-get -y install \
13   - curl sudo \
14   - git-core build-essential gcc-arm-none-eabi libssl-dev \
15   - sed binutils patch gzip bzip2 perl tar cpio python unzip rsync wget \
16   - libz3-dev libncurses5-dev pkg-config libusb-1.0-0-dev \
17   - bc lzop u-boot-tools vim flex bison subversion \
18   - && \
19   - rm -rf /var/lib/apt/lists/*
20   -
21   -CMD ["/bin/bash"]
22   -
23   -ADD toolchain/arm-buildroot-linux-gnueabihf-4.9.4.tar.gz /opt
24   -
25   -env WORK_TOP_PATH /work
26   -
27   -env FA_COMPANY falinux
28   -env FA_CHIPSET imx6s
29   -env FA_PRODUCT prime_oven
30   -
31   -env BR_TOOLCHAIN_PREFIX arm-buildroot-linux-gnueabihf
32   -env BR_TOOLCHAIN_PATH /opt/toolchain/${FA_CHIPSET}/${FA_PRODUCT}
33   -
34   -env CROSS_COMPILE ${BR_TOOLCHAIN_PREFIX}-
35   -env ARCH arm
36   -
37   -env PATH $PATH:${BR_TOOLCHAIN_PATH}/usr/bin
38   -env WORK_LD_LIBRARY_PATH ${BR_TOOLCHAIN_PATH}/usr/lib
39   -
40   -WORKDIR /work
41   -
docker/install.sh
... ... @@ -1,23 +0,0 @@
1   -#!/bin/sh
2   -
3   -PACKAGE_NAME=prime_oven
4   -
5   -echo "[*] Building docker image for ${PACKAGE_NAME}"
6   -docker build -t ${PACKAGE_NAME} .
7   -
8   -echo "[*] Copying runner script ~/bin"
9   -mkdir -p ~/bin/
10   -
11   -for RUNNER in runner/*
12   -do
13   - case $RUNNER in
14   - runner/docker-runner*)
15   - echo " = copy $RUNNER"
16   - cp --remove-destination $RUNNER ~/bin/
17   - ;;
18   - *)
19   - echo " = copy $RUNNER"
20   - cp -a --remove-destination $RUNNER ~/bin/
21   - ;;
22   - esac
23   -done
docker/runner/docker-runner
... ... @@ -1,14 +0,0 @@
1   -#!/bin/bash
2   -CONTAINER=$(basename $0)
3   -CONTAINER_HOSTNAME=${CONTAINER/_/-}
4   -docker run -it --rm \
5   - -h ${CONTAINER_HOSTNAME} \
6   - -u $(id -u):$(id -g) -e HOME=${HOME} -e USER=${USER} -v ${HOME}:${HOME} \
7   - -v /etc/passwd:/etc/passwd:ro \
8   - -v /etc/group:/etc/group:ro \
9   - -v /etc/shadow:/etc/shadow:ro \
10   - -v /etc/sudoers:/etc/sudoers:ro \
11   - -v /etc/timezone:/etc/timezone:ro \
12   - -v /etc/localtime:/etc/localtime:ro \
13   - -v $(pwd):/work -v /nfs:/nfs -v /tftpboot:/tftpboot \
14   - ${CONTAINER} $@
docker/runner/prime_oven
... ... @@ -1 +0,0 @@
1   -docker-runner
2 0 \ No newline at end of file
docker/toolchain/arm-buildroot-linux-gnueabihf-4.9.4.tar.gz
No preview for this file type
files/system.ini
... ... @@ -0,0 +1,4 @@
  1 +[uart]
  2 +devname=/dev/ttymxc2
  3 +baud=19200
  4 +
... ...
release.sh
... ... @@ -0,0 +1,45 @@
  1 +#!/bin/sh
  2 +git clean -x -f -d .
  3 +git checkout -- .
  4 +git pull
  5 +
  6 +UBOOT_SRC_DIR=bootloader/u-boot_2015_04
  7 +UBOOT_OUT_DIR=bootloader/output-u-boot_2015_04
  8 +
  9 +KERNEL_SRC_DIR=kernel/linux-imx6_3.14.28
  10 +KERNEL_OUT_DIR=kernel/output-linux-imx6_3.14.28
  11 +
  12 +BUILDROOT_SRC_DIR=buildroot/buildroot-2016.08.1
  13 +BUILDROOT_OUT_DIR=buildroot/output-buildroot-2016.08.1
  14 +
  15 +TAG=`git log -1 --pretty=format:%h`
  16 +IMAGE_DIR=`realpath $(pwd)/../images_${TAG}`
  17 +
  18 +cd ${UBOOT_SRC_DIR}
  19 +echo "=============================================="
  20 +echo " Build u-boot [ $(pwd) ]"
  21 +echo " IMAGE_DIR: ${IMAGE_DIR}"
  22 +echo "=============================================="
  23 +
  24 +CP_DIR=${IMAGE_DIR} ./make.sh
  25 +cd -
  26 +
  27 +cd ${KERNEL_SRC_DIR}
  28 +echo "=============================================="
  29 +echo " Build kernel [ $(pwd) ]"
  30 +echo " IMAGE_DIR: ${IMAGE_DIR}"
  31 +echo "=============================================="
  32 +
  33 +CP_DIR=${IMAGE_DIR} ./make.sh
  34 +cd -
  35 +
  36 +cd ${BUILDROOT_SRC_DIR}
  37 +echo "=============================================="
  38 +echo " Build buildroot [ $(pwd) ]"
  39 +echo " IMAGE_DIR: ${IMAGE_DIR}"
  40 +echo "=============================================="
  41 +
  42 +CP_DIR=${IMAGE_DIR} ./make.sh image
  43 +cd -
  44 +
  45 +cp -Ra files/* ${IMAGE_DIR}
... ...