Compare commits

..

7 Commits

Author SHA1 Message Date
Pedro Gonçalves
20375315ba docker/Dockerfile: remove cmake and add apt-utils. 2018-08-31 18:25:04 +01:00
Pedro Gonçalves
515404302a docker/Makefile: add clean and delete_img options. 2018-08-31 18:08:00 +01:00
Pedro Gonçalves
49cb586697 docker/Dockerfile: added more packages to be installed. 2018-08-31 18:07:23 +01:00
Pedro Gonçalves
f8e33e9f1e rules/linux/default: update version for linux kernel 4.14.67 (rpi 3b+). 2018-08-31 17:50:45 +01:00
Pedro Gonçalves
b8808d7ff1 rules/linux/default: update rule for linux kernel 4.14.67 (rpi 3b+). 2018-08-31 17:50:14 +01:00
Pedro Gonçalves
d2e92a09c6 rules/rpi-boot-firmware/default: update rule for linux kernel 4.14.67 (rpi 3b+). 2018-08-31 17:48:44 +01:00
Pedro Gonçalves
0ef33de770 systems/*-rpi/cfg: update file for linux kernel 4.14.67 (rpi 3b+). 2018-08-31 17:47:08 +01:00
10 changed files with 2549 additions and 905 deletions

View File

@@ -27,12 +27,24 @@ MAINTAINER Ricardo Martins <rasm@oceanscan-mst.com>
ENV DEBIAN_FRONTEND noninteractive
# Update distro.
RUN echo "deb http://ftp.us.debian.org/debian testing non-free contrib" >> /etc/apt/sources.list
RUN echo "deb http://mirrors.fe.up.pt/ubuntu xenial main restricted universe multiverse" >> /etc/apt/sources.list
RUN echo "deb http://mirrors.fe.up.pt/ubuntu xenial-updates main restricted universe multiverse" >> /etc/apt/sources.list
RUN echo "deb http://mirrors.fe.up.pt/ubuntu xenial-backports main restricted universe multiverse" >> /etc/apt/sources.list
RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32
RUN apt-get update -y
RUN apt-get dist-upgrade -y
RUN apt-get install -y apt-utils
RUN apt-get install -y g++-5
RUN apt-get install -y gcc-5
RUN apt-get install -y wget
RUN apt-get install -y bzip2
RUN apt-get install -y git
RUN apt-get install -y g++-multilib
RUN apt-get install -y cmake
RUN apt-get install -y file
RUN apt-get install -y vim
RUN apt-get install -y nasm
RUN apt-get install -y build-essential
RUN apt-get install -y make
RUN apt-get install -y kmod
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5

View File

@@ -29,3 +29,15 @@ all:
shell:
docker run -w $(VOLUME) -i -a stdin -a stdout -v $(VOLUME):$(VOLUME) -t $(TAG):$(VERSION)
clean:
@echo "* Stopping docker service..."
@sudo systemctl stop docker
@echo "* Cleaning docker service..."
@sudo rm -rf /var/lib/docker
@echo "* Starting docker service..."
@sudo systemctl start docker
@echo "* Done."
delete_img:
@sudo docker system prune -a

View File

@@ -1,6 +1,6 @@
version=\
(
"3.12.1"
"2.8.9"
)
version_major=\
@@ -15,7 +15,7 @@ url=\
md5=\
(
"10109246a51102bfda45ff3935275fbf"
"801f4c87f8b604f727df5bf1f05a59e7"
)
configure()

View File

@@ -128,12 +128,14 @@ build()
$cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux \
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
modules || return 1
if [ "$(basename $cfg_target_linux_kernel)" = 'uImage' ]; then
$cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux \
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
uImage || return 1
fi
@@ -142,6 +144,7 @@ build()
$cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux \
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
zImage || return 1
fi
@@ -150,6 +153,7 @@ build()
$cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux \
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
dtbs || return 1
fi
@@ -194,12 +198,21 @@ target_install()
ARCH="$cfg_target_linux" \
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
KBUILD_VERBOSE=1 \
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
modules_install
$cmd_make \
CROSS_COMPILE="$cfg_target_canonical-" \
ARCH="$cfg_target_linux" \
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
KBUILD_VERBOSE=1 \
firmware_install
echo $cfg_sys_family
if [[ $cfg_sys_family == *rpi* ]]; then
echo "RPI family, no need of firmware_install"
sleep 2
else
sleep 2
$cmd_make \
CROSS_COMPILE="$cfg_target_canonical-" \
ARCH="$cfg_target_linux" \
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
KBUILD_VERBOSE=1 \
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
firmware_install
fi
}

View File

@@ -2,7 +2,7 @@
version=\
(
'4.4_2017-01-27'
'4.14_2018-08-17'
)
url=\
@@ -12,7 +12,7 @@ url=\
md5=\
(
'f31d48a9d2c93509b35e750be489b44c'
'074e40d83f4f4a99449acb08f8ddcbec'
)
build_dir="rpi-linux-rpi-linux-$version"

View File

@@ -1,6 +1,6 @@
version=\
(
'2017-02-02'
'2018-08-17'
)
url=\
@@ -16,7 +16,7 @@ maintainer=\
md5=\
(
'eb42664fce4d73f167064e697dfacb76'
'2b06b9704616ee2a66829281bd480ff3'
)
target_install()

View File

@@ -1 +1 @@
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 elevator=deadline rootwait quiet
dwc_otg.lpm_enable=0 console=ttyAMA0,115200,8n1 root=/dev/mmcblk0p2 elevator=deadline rootwait quiet

View File

@@ -1,2 +0,0 @@
cfg_hostname='manta-sabuvis'
cfg_eth_ext_ip='10.0.30.26'