summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Config.in2
-rwxr-xr-xcustom/overlay/etc/init.d/S49-dropbear-prep34
l---------custom/overlay/home1
-rw-r--r--custom/overlay/root/.zshrc7
-rw-r--r--external.desc2
-rw-r--r--external.mk1
-rw-r--r--package/rpi-utils/0001-only-vcgencmd.patch17
-rw-r--r--package/rpi-utils/Config.in17
-rw-r--r--package/rpi-utils/rpi-utils.hash3
-rw-r--r--package/rpi-utils/rpi-utils.mk24
10 files changed, 108 insertions, 0 deletions
diff --git a/Config.in b/Config.in
new file mode 100644
index 0000000..53475f1
--- /dev/null
+++ b/Config.in
@@ -0,0 +1,2 @@
+comment "uvok's packages"
+source "$BR2_EXTERNAL_UVOK_BUILDROOT_PATH/package/rpi-utils/Config.in"
diff --git a/custom/overlay/etc/init.d/S49-dropbear-prep b/custom/overlay/etc/init.d/S49-dropbear-prep
new file mode 100755
index 0000000..33bad8f
--- /dev/null
+++ b/custom/overlay/etc/init.d/S49-dropbear-prep
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+# Prepares dropbear (external keys).
+# Assumes there's a third partition (test for it).
+# Assume partition is formatted (however you want).
+#
+# TODO:
+# Actually create the dropbear symlink if keys already
+# exist in /data/dropbear/
+#
+
+
+start() {
+ if ! [[ -e /data/ ]] ; then
+ mkdir /data/
+ fi
+
+ if test -e /dev/mmcblk0p3 && ! grep -sq mmcblk0p3 /proc/mounts ; then
+ mount /dev/mmcblk0p3 /data/
+ fi
+}
+
+case "$1" in
+ start)
+ start
+ ;;
+ stop|restart|reload)
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart}"
+ exit 1
+esac
+
+exit 0
diff --git a/custom/overlay/home b/custom/overlay/home
new file mode 120000
index 0000000..12d0e71
--- /dev/null
+++ b/custom/overlay/home
@@ -0,0 +1 @@
+/data/home/ \ No newline at end of file
diff --git a/custom/overlay/root/.zshrc b/custom/overlay/root/.zshrc
new file mode 100644
index 0000000..f72d530
--- /dev/null
+++ b/custom/overlay/root/.zshrc
@@ -0,0 +1,7 @@
+bindkey -e
+bindkey "^[[H" beginning-of-line
+bindkey "^[[F" end-of-line
+bindkey "^[[3~" delete-char
+
+PS1='%F{blue}%~ %(?.%F{green}.%F{red})%#%f '
+
diff --git a/external.desc b/external.desc
new file mode 100644
index 0000000..19a7220
--- /dev/null
+++ b/external.desc
@@ -0,0 +1,2 @@
+name: UVOK_BUILDROOT
+
diff --git a/external.mk b/external.mk
new file mode 100644
index 0000000..49b75fb
--- /dev/null
+++ b/external.mk
@@ -0,0 +1 @@
+include $(sort $(wildcard $(BR2_EXTERNAL_UVOK_BUILDROOT_PATH)/package/*/*.mk))
diff --git a/package/rpi-utils/0001-only-vcgencmd.patch b/package/rpi-utils/0001-only-vcgencmd.patch
new file mode 100644
index 0000000..0f7c970
--- /dev/null
+++ b/package/rpi-utils/0001-only-vcgencmd.patch
@@ -0,0 +1,17 @@
+--- a/CMakeLists.txt 2024-09-09 19:39:12.297119443 +0200
++++ b/CMakeLists.txt 2024-09-09 19:39:24.145109420 +0200
+@@ -2,14 +2,4 @@
+
+ project(utils)
+
+-# List of subsidiary CMakeLists
+-add_subdirectory(dtmerge)
+-add_subdirectory(eeptools)
+-add_subdirectory(otpset)
+-add_subdirectory(overlaycheck)
+-add_subdirectory(ovmerge)
+-add_subdirectory(pinctrl)
+-add_subdirectory(raspinfo)
+ add_subdirectory(vcgencmd)
+-add_subdirectory(vclog)
+-add_subdirectory(vcmailbox)
diff --git a/package/rpi-utils/Config.in b/package/rpi-utils/Config.in
new file mode 100644
index 0000000..5a14b4c
--- /dev/null
+++ b/package/rpi-utils/Config.in
@@ -0,0 +1,17 @@
+config BR2_PACKAGE_RPI_UTILS
+ bool "rpi-utils"
+ depends on BR2_arm || BR2_aarch64
+ depends on BR2_INSTALL_LIBSTDCPP
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ depends on !BR2_STATIC_LIBS
+ select BR2_PACKAGE_HAS_LIBEGL if BR2_arm
+ select BR2_PACKAGE_HAS_LIBGLES if BR2_arm
+ select BR2_PACKAGE_HAS_LIBOPENVG if BR2_arm
+ select BR2_PACKAGE_HAS_LIBOPENMAX if BR2_arm
+ help
+ https://github.com/raspberrypi/utils
+
+comment "rpi-utils needs a toolchain w/ C++, threads, dynamic library"
+ depends on BR2_arm || BR2_aarch64
+ depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
+ BR2_STATIC_LIBS
diff --git a/package/rpi-utils/rpi-utils.hash b/package/rpi-utils/rpi-utils.hash
new file mode 100644
index 0000000..e4854ba
--- /dev/null
+++ b/package/rpi-utils/rpi-utils.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256 0db20b7dfb24849a13ae457ccabbc1c88a02d6a0528ae6354ce66d26be150491 rpi-utils-d4f8fb543a892ba65bfc608511bf582c0425aa81.tar.gz
+sha256 bee6f1249175683d8610651706e1aa7dffcbfd3f9c4c05bc1e5ab34f313c2db5 LICENCE
diff --git a/package/rpi-utils/rpi-utils.mk b/package/rpi-utils/rpi-utils.mk
new file mode 100644
index 0000000..d26ff27
--- /dev/null
+++ b/package/rpi-utils/rpi-utils.mk
@@ -0,0 +1,24 @@
+################################################################################
+#
+# rpi-userland
+#
+################################################################################
+
+RPI_UTILS_VERSION = d4f8fb543a892ba65bfc608511bf582c0425aa81
+RPI_UTILS_SITE = $(call github,raspberrypi,utils,$(RPI_UTILS_VERSION))
+RPI_UTILS_LICENSE = BSD-3-Clause
+RPI_UTILS_LICENSE_FILES = LICENCE
+RPI_UTILS_INSTALL_STAGING = YES
+
+ifeq ($(BR2_aarch64),y)
+RPI_UTILS_CONF_OPTS += -DARM64=ON
+endif
+
+RPI_UTILS_CONF_OPTS += -DALL_APPS=OFF
+
+define RPI_UTILS_POST_TARGET_CLEANUP
+ rm -Rf $(TARGET_DIR)/usr/src
+endef
+RPI_UTILS_POST_INSTALL_TARGET_HOOKS += RPI_UTILS_POST_TARGET_CLEANUP
+
+$(eval $(cmake-package))