Compare commits

..

12 Commits

Author SHA1 Message Date
Pedro Gonçalves
d9a598aad4 rules/make/host: update version/package to fix bug in make. 2019-10-10 10:34:39 +01:00
Pedro Gonçalves
3ea28bfee6 rules/ncurses/common: update ncurses to fix bug in make. 2019-10-10 10:33:48 +01:00
Pedro Gonçalves
d72ebbe955 rules/gcc/common: change/update gcc files to fix error in make. 2019-10-10 10:24:00 +01:00
Jose Pinto
8418458d6e ZeroTierOne: Added package rule. 2019-08-17 10:18:44 +01:00
Jose Pinto
78a8e0099d Kplex: added package rule. 2019-08-17 10:18:25 +01:00
Pedro Gonçalves
9824634051 Merge pull request #40 from LSTS/feature/exiftool
Feature/exiftool
2019-04-05 15:21:08 +01:00
Pedro Gonçalves
a21f7a4835 lctr-rpi: config: add exiftool and libusb to the main config. 2019-04-05 15:20:04 +01:00
Tiago Sá Marques
ca8a965f1f Merge pull request #38 from krisgry/feature/copy-curl
Copy libcurl_* to /lib/, for cross-compilation of DUNE
2019-04-04 12:21:54 +00:00
Tiago Sá Marques
623bac0c38 Merge pull request #37 from krisgry/feature/copylibopenCV
Copy libopencv_* to /lib/, for cross-compilation of DUNE
2019-04-04 12:20:03 +00:00
mariacosta
c66054cafd lctr-rpi: test-rpi-eth0: Added libusb package. 2019-02-27 18:29:23 +00:00
Kristoffer Gryte
4e0d51b548 rules/curl: symlink libcurl to /lib/ for cross-compilation of DUNE 2019-02-06 14:40:03 +01:00
Kristoffer Gryte
20a8911a04 rules/opencv: symlink libopencv_* to /lib/, for cross-compilation of DUNE 2019-02-06 14:29:43 +01:00
18 changed files with 95 additions and 6573 deletions

View File

@@ -36,6 +36,3 @@ RUN apt-get install -y g++-multilib
RUN apt-get install -y cmake RUN apt-get install -y cmake
RUN apt-get install -y file RUN apt-get install -y file
RUN apt-get install -y kmod RUN apt-get install -y kmod
RUN apt-get install -y bison
RUN apt-get install -y flex
RUN apt-get install -y libssl-dev

View File

@@ -35,6 +35,11 @@ build()
host_install() host_install()
{ {
$cmd_make install $cmd_make install
# make available for cross compilation
for f in "${cfg_dir_toolchain_sysroot}/usr/lib/"libcurl*so*; do
echo "Doing $f"
ln -s -f "$f" "${cfg_dir_toolchain}/lib"
done
} }
target_install() target_install()

View File

@@ -1,14 +0,0 @@
start()
{
echo "* Mounting external sdcard in /opt/lsts *"
mount /dev/mmcblk1p1 /opt/lsts
mkdir -p /opt/lsts/glued
mkdir -p /opt/lsts/dune
}
stop()
{
echo "* Unmount external sdcard *"
umount /dev/mmcblk1p1
}

View File

@@ -5,12 +5,12 @@ version=\
url=\ url=\
( (
"http://mirrors.kernel.org/gnu/gcc/gcc-$version/gcc-$version.tar.bz2" "https://lsts.pt/glued/gcc-$version.tar.bz2"
) )
md5=\ md5=\
( (
'6f831b4d251872736e8e9cc09746f327' '0abd6a50e1d6cf1642ae2414cc5a10b6'
) )
build_dir=$pkg_var build_dir=$pkg_var

25
rules/kplex/default.bash Normal file
View File

@@ -0,0 +1,25 @@
version=\
(
'1.4'
)
url=\
(
"https://github.com/stripydog/kplex/archive/v$version.tar.gz"
)
md5=\
(
'df198384d2d7dee4b802136f4f9e9d44'
)
build()
{
cd ../kplex-$version && $cmd_make VERBOSE=1 CC="$cmd_target_cc"
}
target_install()
{
$cmd_cp ../kplex-$version/kplex "$cfg_dir_rootfs/usr/bin/kplex"
}

View File

@@ -1,6 +1,6 @@
version=\ version=\
( (
'4.19.60' '4.4.66'
) )
url=\ url=\
@@ -10,7 +10,7 @@ url=\
md5=\ md5=\
( (
'3f8dfed50f9d9ff7247b3d6da4fd35a3' '5353de56bf4621a35afc4384c7e51f30'
) )
maintainer=\ maintainer=\

View File

@@ -196,10 +196,10 @@ target_install()
KBUILD_VERBOSE=1 \ KBUILD_VERBOSE=1 \
modules_install modules_install
#$cmd_make \ $cmd_make \
# CROSS_COMPILE="$cfg_target_canonical-" \ CROSS_COMPILE="$cfg_target_canonical-" \
# ARCH="$cfg_target_linux" \ ARCH="$cfg_target_linux" \
# INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \ INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
# KBUILD_VERBOSE=1 \ KBUILD_VERBOSE=1 \
# firmware_install firmware_install
} }

View File

@@ -2,7 +2,7 @@
version=\ version=\
( (
'4.19_2019-07-29' '4.4_2017-01-27'
) )
url=\ url=\
@@ -12,7 +12,7 @@ url=\
md5=\ md5=\
( (
'a9fac458f26bf4a3f3d9c981c7e51dd9' 'f31d48a9d2c93509b35e750be489b44c'
) )
build_dir="rpi-linux-rpi-linux-$version" build_dir="rpi-linux-rpi-linux-$version"

View File

@@ -5,12 +5,12 @@ version=\
url=\ url=\
( (
"http://ftp.gnu.org/gnu/make/make-$version.tar.bz2" "https://lsts.pt/glued/make-$version.tar.bz2"
) )
md5=\ md5=\
( (
'1a11100f3c63fcf5753818e59d63088f' '69520444a44561c8ce10276eee8ec55e'
) )
maintainer=\ maintainer=\

View File

@@ -1,6 +1,6 @@
version=\ version=\
( (
"5.9" "6.1"
) )
url=\ url=\
@@ -10,7 +10,7 @@ url=\
md5=\ md5=\
( (
"8cb9c412e5f2d96bc6f459aa8c6282a1" "98c889aaf8d23910d2b92d65be2e737a"
) )
maintainer=\ maintainer=\

View File

@@ -63,6 +63,11 @@ host_install()
{ {
cd ${pkg_build_dir}/../build && cd ${pkg_build_dir}/../build &&
$cmd_make install $cmd_make install
# make available for cross compilation
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libopencv*so*; do
ln -s -f "$f" "$cfg_dir_toolchain/lib"
done
} }
target_install() target_install()

View File

@@ -1,6 +1,6 @@
version=\ version=\
( (
'2019-07-29' '2017-02-02'
) )
url=\ url=\
@@ -10,17 +10,20 @@ url=\
maintainer=\ maintainer=\
( (
'Ricardo Martins <rasm@fe.up.pt>'
'Pedro Gonçalves <pedro@lsts.pt>' 'Pedro Gonçalves <pedro@lsts.pt>'
) )
md5=\ md5=\
( (
'5b35887b1026fafe8174f473679d175a' 'eb42664fce4d73f167064e697dfacb76'
) )
target_install() target_install()
{ {
$cmd_mkdir "$cfg_dir_rootfs/boot" $cmd_mkdir "$cfg_dir_rootfs/boot"
$cmd_cp "../$pkg-$version/"* "$cfg_dir_rootfs/boot/" $cmd_cp "../$pkg-$version/"* "$cfg_dir_rootfs/boot/"
tar -C "$pkg_dir/fs" -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f - tar -C "$pkg_dir/fs" -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
} }

View File

@@ -0,0 +1,34 @@
version=\
(
'1.4.2'
)
url=\
(
"https://github.com/zerotier/ZeroTierOne/archive/$version.tar.gz"
)
md5=\
(
'c173f8b61bcdb23844a2669ff0d7bdf0'
)
build()
{
cd ../ZeroTierOne-$version && $cmd_make \
VERBOSE=1 \
CC="$cmd_target_cc" \
CXX="$cmd_target_cxx" \
LD="$cmd_target_ld" \
STRIP="$cmd_target_strip" \
CC_FLAGS="$cfg_target_gcc_flags"
}
target_install()
{
$cmd_cp "../ZeroTierOne-$version/zerotier-one" "$cfg_dir_rootfs/usr/bin/zerotier-one"
ln -sf "$cfg_dir_rootfs/usr/bin/zerotier-one" "$cfg_dir_rootfs/usr/bin/zerotier-cli"
ln -sf "$cfg_dir_rootfs/usr/bin/zerotier-one" "$cfg_dir_rootfs/usr/bin/zerotier-idtool"
}

File diff suppressed because it is too large Load Diff

View File

@@ -3,7 +3,7 @@ cfg_storage='data0:ext4:/opt'
cfg_modules='' cfg_modules=''
cfg_services0='network dropbear storage upgrade syslog ptpd' cfg_services0='network dropbear storage upgrade syslog ptpd'
cfg_services2='dune' cfg_services2='dune'
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind rpi-boot-firmware linux/rpi' cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind rpi-boot-firmware linux/rpi exiftool libusb'
cfg_target_linux_kernel='arch/arm/boot/zImage' cfg_target_linux_kernel='arch/arm/boot/zImage'
cfg_ptpd_interface='eth0' cfg_ptpd_interface='eth0'
cfg_eth_ext_mk='255.255.0.0' cfg_eth_ext_mk='255.255.0.0'

View File

@@ -4,15 +4,6 @@ arm_freq=1000
# Disable BT on Rpi3. # Disable BT on Rpi3.
dtoverlay=pi3-disable-bt dtoverlay=pi3-disable-bt
dtoverlay=uart1 # Enable RasPicam
dtoverlay=uart0 start_x=1
gpu_mem=128
### EXTERNAL SDCARD OPTIONS
# Activate external sdcard in CM3 [22 at 27]
#dtoverlay=sdio,poll_once=off
#Activate external sdcard in CM3 [34 at 39]
#dtoverlay=sdio34,poll_once=off,gpios_34_39
#dtoverlay=sdio34,poll_once=off,bus_width=4,gpios_34_39
#dtoverlay=sdio34,poll_once=off,bus_width=4,sdio_overclock=30
#dtoverlay=sdio34,poll_once=off,bus_width=4,gpios_34_39,sdio_overclock=30

View File

@@ -1,9 +0,0 @@
cfg_hostname='test-rpi-cm3'
cfg_eth_ext_ip='10.0.200.52'
cfg_services1=''
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind rpi-boot-firmware linux/rpi'
cfg_services0='network dropbear storage upgrade syslog ptpd mount_sdcard_cm3'
cfg_modules="$cfg_modules ftdi_sio"
cfg_terminal='tty1'
cfg_ptpd_interface='eth0'

View File

@@ -1,7 +1,7 @@
cfg_hostname='test-rpi' cfg_hostname='test-rpi'
cfg_eth_ext_ip='10.0.200.52' cfg_eth_ext_ip='10.0.200.52'
cfg_services1='' cfg_services1=''
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind rpi-boot-firmware linux/rpi exiftool' cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind rpi-boot-firmware linux/rpi exiftool libusb'
cfg_services0='network dropbear storage upgrade syslog ptpd' cfg_services0='network dropbear storage upgrade syslog ptpd'
cfg_modules="$cfg_modules ftdi_sio" cfg_modules="$cfg_modules ftdi_sio"
cfg_terminal='tty1' cfg_terminal='tty1'