Merge pull request #895 from necrophcodr/bananapi
New packages: bananapi-uboot, bananapi-base
This commit is contained in:
commit
c95ec013c7
5 changed files with 1156 additions and 0 deletions
12
srcpkgs/bananapi-base/INSTALL
Normal file
12
srcpkgs/bananapi-base/INSTALL
Normal file
|
@ -0,0 +1,12 @@
|
|||
case "$ACTION" in
|
||||
post)
|
||||
# enable sshd, ntpdate, ntpd and dhcpcd services.
|
||||
if [ -x /usr/bin/systemctl ]; then
|
||||
systemctl sshd.service ntpdate.service ntpd.service dhcpcd.service
|
||||
elif [ -d etc/runit/runsvdir/default ]; then
|
||||
ln -s /etc/sv/sshd etc/runit/runsvdir/default/
|
||||
ln -s /etc/sv/ntpd etc/runit/runsvdir/default/
|
||||
ln -s /etc/sv/dhcpcd etc/runit/runsvdir/default/
|
||||
fi
|
||||
;;
|
||||
esac
|
24
srcpkgs/bananapi-base/template
Normal file
24
srcpkgs/bananapi-base/template
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Template file for 'bananapi-base'
|
||||
# Based on odroid-u2-base
|
||||
pkgname=bananapi-base
|
||||
version=1.0
|
||||
revision=1
|
||||
build_style=meta
|
||||
homepage="http://www.voidlinux.eu"
|
||||
short_desc="Void Linux Banana Pi platform package"
|
||||
maintainer="necrophcodr <necrophcodr@necrophcodr.me>"
|
||||
license="Public Domain"
|
||||
|
||||
only_for_archs="armv7l"
|
||||
depends="virtual?ntp-daemon sun7i-kernel bananapi-uboot"
|
||||
hostmakedepends="sunxi-tools"
|
||||
|
||||
do_install() {
|
||||
# Load the sunxi-gmac module by default.
|
||||
vmkdir usr/lib/modules-load.d
|
||||
echo sunxi-gmac > ${DESTDIR}/usr/lib/modules-load.d/bpi.conf
|
||||
# Set proper perms to some devices.
|
||||
vmkdir usr/lib/udev/rules.d
|
||||
echo 'KERNEL=="disp|cedar_dev|mali|ump", MODE="0660", GROUP="video"' > ${DESTDIR}/usr/lib/udev/rules.d/50-bpi-video.rules
|
||||
|
||||
}
|
1073
srcpkgs/bananapi-uboot/files/script.fex
Normal file
1073
srcpkgs/bananapi-uboot/files/script.fex
Normal file
File diff suppressed because it is too large
Load diff
4
srcpkgs/bananapi-uboot/files/uEnv.txt
Executable file
4
srcpkgs/bananapi-uboot/files/uEnv.txt
Executable file
|
@ -0,0 +1,4 @@
|
|||
bootargs=console=ttyS0,115200 console=tty0 sunxi_g2d_mem_reserve=0 sunxi_ve_mem_reserve=0 disp.screen0_output_mode=EDID:1280x720p50 hdmi.audio=EDID:0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
|
||||
aload_script=fatload mmc 0 0x43000000 script.bin;
|
||||
aload_kernel=fatload mmc 0 0x48000000 uImage; bootm 0x48000000;
|
||||
uenvcmd=run aload_script aload_kernel
|
43
srcpkgs/bananapi-uboot/template
Normal file
43
srcpkgs/bananapi-uboot/template
Normal file
|
@ -0,0 +1,43 @@
|
|||
# Template file for 'odroid-u2-uboot'
|
||||
pkgname=bananapi-uboot
|
||||
version=15.01
|
||||
revision=1
|
||||
hostmakedepends="uboot-mkimage"
|
||||
short_desc="Banana Pi uboot module"
|
||||
maintainer="necrophcodr <necrophcodr@necrophcodr.me>"
|
||||
license="GPL-2"
|
||||
homepage="https://github.com/hardkernel/u-boot"
|
||||
distfiles="https://github.com/Bananian/u-boot-bananapi/archive/bananian-v${version}.tar.gz"
|
||||
checksum="935ac90624cc00106a1547b8da2b3e59ab09db9cf658df7126a93738fac74fe5"
|
||||
wrksrc="u-boot-bananapi-bananian-v${version}"
|
||||
|
||||
conf_files="/boot/uEnv.txt"
|
||||
|
||||
only_for_archs="armv7l"
|
||||
|
||||
do_configure() {
|
||||
make mrproper
|
||||
make Bananapi_config
|
||||
}
|
||||
|
||||
do_build() {
|
||||
unset CFLAGS CXXFLAGS LDFLAGS
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
make ARCH=arm CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-
|
||||
else
|
||||
make ARCH=arm
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
do_install() {
|
||||
# Certain files in `files` directory *NEED* to be installed.
|
||||
# uEnv.txt: The boot configuration file, in pure text for readability.
|
||||
# script.fex: Pure text board configuration, compiled to script.bin.
|
||||
vmkdir boot
|
||||
cp ${FILESDIR}/uEnv.txt ${DESTDIR}/boot/
|
||||
fexc ${FILESDIR}/script.fex ${DESTDIR}/boot/script.bin
|
||||
|
||||
vinstall u-boot.bin 600 boot
|
||||
}
|
Loading…
Reference in a new issue