2014-01-23 01:41:54 +01:00
|
|
|
# Template file for 'odroid-u2-base'
|
|
|
|
pkgname=odroid-u2-base
|
2014-01-24 11:35:48 +01:00
|
|
|
version=1.4
|
2014-01-24 12:01:13 +01:00
|
|
|
revision=2
|
2014-01-23 01:41:54 +01:00
|
|
|
homepage="http://www.voidlinux.eu"
|
2014-01-22 00:23:49 +01:00
|
|
|
hostmakedepends="uboot-mkimage"
|
2014-01-23 13:12:26 +01:00
|
|
|
makedepends="odroid-u2-kernel"
|
|
|
|
depends="${makedepends}"
|
2014-01-23 01:41:54 +01:00
|
|
|
short_desc="ODROID U2/U3 base files"
|
2014-01-22 00:23:49 +01:00
|
|
|
maintainer="Enno Boland <eb@s01.de>"
|
|
|
|
license="GPL-2.0"
|
2014-01-24 11:35:48 +01:00
|
|
|
only_for_archs="armv7l"
|
2014-01-24 11:59:56 +01:00
|
|
|
conf_files=/etc/default/odroid-led
|
2014-01-24 11:35:48 +01:00
|
|
|
|
|
|
|
# enable odroid-led, ntpd, dhcpcd and sshd by default.
|
|
|
|
systemd_services="
|
|
|
|
odroid-led.service on
|
|
|
|
ntpdate.service on
|
|
|
|
ntpd.service on
|
|
|
|
dhcpcd.service on
|
|
|
|
sshd.service on"
|
|
|
|
|
|
|
|
# Allow upgrades for compatibility.
|
2014-01-23 09:32:32 +01:00
|
|
|
provides="odroid-u2-ubootcfg-${version}_${revision}"
|
|
|
|
replaces="odroid-u2-ubootcfg>=0"
|
2014-01-22 00:23:49 +01:00
|
|
|
|
|
|
|
_default_scr="boot-auto_edid.scr"
|
|
|
|
|
|
|
|
do_build() {
|
2014-01-23 01:41:54 +01:00
|
|
|
# Building uboot scr's
|
2014-01-23 00:32:40 +01:00
|
|
|
for source in ${FILESDIR}/*.ini; do
|
|
|
|
name=$(basename ${source%.ini})
|
2014-01-22 00:52:08 +01:00
|
|
|
mkimage -A arm -T script -C none -n "${name}" -d $source ${name}.scr
|
2014-01-22 00:23:49 +01:00
|
|
|
done
|
|
|
|
cp ${_default_scr} boot.scr
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2014-01-24 11:35:48 +01:00
|
|
|
# Install uboot scr's
|
2014-01-22 00:23:49 +01:00
|
|
|
for scr in *.scr; do
|
|
|
|
echo $scr
|
|
|
|
vinstall $scr 600 boot
|
|
|
|
done
|
2014-01-24 11:35:48 +01:00
|
|
|
|
|
|
|
# Install LED utilities
|
|
|
|
vinstall ${FILESDIR}/odroid-led 744 /usr/sbin
|
|
|
|
vinstall ${FILESDIR}/odroid-led.default 744 /etc/default odroid-led
|
|
|
|
vinstall ${FILESDIR}/odroid-led.service 644 /usr/lib/systemd/system
|
|
|
|
|
2014-01-22 00:23:49 +01:00
|
|
|
}
|