bananapi*: remove

unmaintained for a long time, part of the sun7i family
This commit is contained in:
classabbyamp 2023-10-06 15:27:14 -04:00 committed by classabbyamp
parent 880bd37fae
commit 11bbfd547c
10 changed files with 0 additions and 1300 deletions

View File

@ -1,8 +0,0 @@
case "$ACTION" in
post)
mkdir -p etc/runit/runsvdir/default/
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/
;;
esac

View File

@ -1,23 +0,0 @@
# Template file for 'bananapi-base'
# Based on odroid-u2-base
pkgname=bananapi-base
version=2.3
revision=3
build_style=meta
short_desc="Void Linux Banana Pi platform package"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Public Domain"
homepage="http://www.voidlinux.org"
archs="armv7l*"
depends="virtual?ntp-daemon sun7i-kernel bananapi-uboot linux-firmware-network"
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
}

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +0,0 @@
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

View File

@ -1,42 +0,0 @@
--- a/include/image.h 2014-08-19 08:42:46.000000000 +0200
+++ b/include/image.h 2020-09-15 10:43:48.410147914 +0200
@@ -19,6 +19,11 @@
#include "compiler.h"
#include <asm/byteorder.h>
+#if !defined(__GLIBC__)
+typedef unsigned long int ulong;
+typedef unsigned long int uintptr_t;
+#endif
+
/* Define this to avoid #ifdefs later on */
struct lmb;
--- a/tools/mkimage.h 2014-08-19 08:42:46.000000000 +0200
+++ b/tools/mkimage.h 2020-09-15 10:46:44.221140904 +0200
@@ -22,6 +22,11 @@
#include "fdt_host.h"
#include "imagetool.h"
+#if !defined(__GLIBC__)
+typedef unsigned long int ulong;
+typedef unsigned long int uintptr_t;
+#endif
+
#undef MKIMAGE_DEBUG
#ifdef MKIMAGE_DEBUG
--- a/tools/proftool.c 2014-08-19 08:42:46.000000000 +0200
+++ b/tools/proftool.c 2020-09-15 10:48:28.212136757 +0200
@@ -20,6 +20,11 @@
#include <compiler.h>
#include <trace.h>
+#if !defined(__GLIBC__)
+typedef unsigned long int ulong;
+typedef unsigned long int uintptr_t;
+#endif
+
#define MAX_LINE_LEN 500
enum {

View File

@ -1,11 +0,0 @@
--- a/common/main.c 2014-08-19 08:42:46.000000000 +0200
+++ b/common/main.c 2020-09-15 09:39:04.675302769 +0200
@@ -27,7 +27,7 @@
/*
* Board-specific Platform code can reimplement show_boot_progress () if needed
*/
-void inline __show_boot_progress (int val) {}
+void __show_boot_progress (int val) {}
void show_boot_progress (int val) __attribute__((weak, alias("__show_boot_progress")));
#define MAX_DELAY_STOP_STR 32

View File

@ -1,36 +0,0 @@
--- a/common/board_f.c 2014-08-19 08:42:46.000000000 +0200
+++ b/common/board_f.c 2020-09-15 09:40:56.739298301 +0200
@@ -78,24 +78,24 @@
************************************************************************
* May be supplied by boards if desired
*/
-inline void __coloured_LED_init(void) {}
+void __coloured_LED_init(void) {}
void coloured_LED_init(void)
__attribute__((weak, alias("__coloured_LED_init")));
-inline void __red_led_on(void) {}
+void __red_led_on(void) {}
void red_led_on(void) __attribute__((weak, alias("__red_led_on")));
-inline void __red_led_off(void) {}
+void __red_led_off(void) {}
void red_led_off(void) __attribute__((weak, alias("__red_led_off")));
-inline void __green_led_on(void) {}
+void __green_led_on(void) {}
void green_led_on(void) __attribute__((weak, alias("__green_led_on")));
-inline void __green_led_off(void) {}
+void __green_led_off(void) {}
void green_led_off(void) __attribute__((weak, alias("__green_led_off")));
-inline void __yellow_led_on(void) {}
+void __yellow_led_on(void) {}
void yellow_led_on(void) __attribute__((weak, alias("__yellow_led_on")));
-inline void __yellow_led_off(void) {}
+void __yellow_led_off(void) {}
void yellow_led_off(void) __attribute__((weak, alias("__yellow_led_off")));
-inline void __blue_led_on(void) {}
+void __blue_led_on(void) {}
void blue_led_on(void) __attribute__((weak, alias("__blue_led_on")));
-inline void __blue_led_off(void) {}
+void __blue_led_off(void) {}
void blue_led_off(void) __attribute__((weak, alias("__blue_led_off")));
/*

View File

@ -1,54 +0,0 @@
--- a/arch/arm/include/asm/io.h 2014-08-19 08:42:46.000000000 +0200
+++ b/arch/arm/include/asm/io.h 2020-09-15 09:36:28.791308985 +0200
@@ -75,7 +75,7 @@
#define __arch_putw(v,a) (*(volatile unsigned short *)(a) = (v))
#define __arch_putl(v,a) (*(volatile unsigned int *)(a) = (v))
-extern inline void __raw_writesb(unsigned long addr, const void *data,
+static inline void __raw_writesb(unsigned long addr, const void *data,
int bytelen)
{
uint8_t *buf = (uint8_t *)data;
@@ -83,7 +83,7 @@
__arch_putb(*buf++, addr);
}
-extern inline void __raw_writesw(unsigned long addr, const void *data,
+static inline void __raw_writesw(unsigned long addr, const void *data,
int wordlen)
{
uint16_t *buf = (uint16_t *)data;
@@ -91,7 +91,7 @@
__arch_putw(*buf++, addr);
}
-extern inline void __raw_writesl(unsigned long addr, const void *data,
+static inline void __raw_writesl(unsigned long addr, const void *data,
int longlen)
{
uint32_t *buf = (uint32_t *)data;
@@ -99,21 +99,21 @@
__arch_putl(*buf++, addr);
}
-extern inline void __raw_readsb(unsigned long addr, void *data, int bytelen)
+static inline void __raw_readsb(unsigned long addr, void *data, int bytelen)
{
uint8_t *buf = (uint8_t *)data;
while(bytelen--)
*buf++ = __arch_getb(addr);
}
-extern inline void __raw_readsw(unsigned long addr, void *data, int wordlen)
+static inline void __raw_readsw(unsigned long addr, void *data, int wordlen)
{
uint16_t *buf = (uint16_t *)data;
while(wordlen--)
*buf++ = __arch_getw(addr);
}
-extern inline void __raw_readsl(unsigned long addr, void *data, int longlen)
+static inline void __raw_readsl(unsigned long addr, void *data, int longlen)
{
uint32_t *buf = (uint32_t *)data;
while(longlen--)

View File

@ -1,47 +0,0 @@
# Template file for 'bananapi-uboot'
pkgname=bananapi-uboot
version=15.04
revision=2
hostmakedepends="sunxi-tools uboot-mkimage"
short_desc="Banana Pi uboot module"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://github.com/hardkernel/u-boot"
distfiles="https://github.com/Bananian/u-boot-bananapi/archive/bananian-v${version}.tar.gz"
checksum=8be162b0b8e85d3fbc2e14af3b71c4a204f4a9c63f6f13275f86629624c1d6a6
conf_files="/boot/uEnv.txt"
archs="armv7l*"
do_configure() {
# Create a dummy header file for gcc10 since include/linux/compiler-gcc.h
# generates an include for it but there is no such file.
mkdir -p include/linux
touch include/linux/compiler-gcc10.h
# Also current gcc9 requires this. Need to find the reason and fix that.
touch include/linux/compiler-gcc9.h
make mrproper
make Bananapi_config
}
do_build() {
unset CFLAGS CXXFLAGS LDFLAGS
if [ "$CROSS_BUILD" ]; then
make CFLAGS="-fcommon" ARCH=arm CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-
else
make CFLAGS="-fcommon" 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-sunxi-with-spl.bin 644 boot
}

View File

@ -1,2 +0,0 @@
pkgname=bananian
site="https://github.com/Bananian/u-boot-bananapi/releases"