odroid-scripts: New Package.
PATCH v4 1/3 odroid-scripts: New Package.
---
v3 -> v4:
- seperate setting of odroid-scripts from odroidc2 def config (Thomas Petazzoni).
- fix udev bug so systemd will be supported too (Thomas Petazzoni).
- fix udev rule install
v2 -> v3:
- update repo rev to a252de04562dcf8d8a4918a544b45a9e3d46d2fb.
- update hash
v1 -> v2:
- fix hash type in hash file.
package/Config.in | 1 + package/odroid-scripts/Config.in | 7 +++++++ package/odroid-scripts/S50odroidc2_fb | 20 +++++++++++++++++++ package/odroid-scripts/odroid-scripts.hash | 2 ++ package/odroid-scripts/odroid-scripts.mk | 32 ++++++++++++++++++++++++++++++ 5 files changed, 62 insertions(+) create mode 100644 package/odroid-scripts/Config.in create mode 100644 package/odroid-scripts/S50odroidc2_fb create mode 100644 package/odroid-scripts/odroid-scripts.hash create mode 100644 package/odroid-scripts/odroid-scripts.mk
package/Config.in +1 -0
@@ -1690,6 +1690,7 @@ menu "System tools" source "package/ncdu/Config.in" source "package/numactl/Config.in" source "package/nut/Config.in" + source "package/odroid-scripts/Config.in" source "package/openvmtools/Config.in" source "package/polkit/Config.in" source "package/powerpc-utils/Config.in"
package/odroid-scripts/Config.in new file +7 -0
@@ -0,0 +1,7 @@ +config BR2_PACKAGE_ODROID_SCRIPTS + bool "odroid-scripts" + depends on BR2_aarch64 || BR2_arm + help + Install the scripts for the odroidc2 based systems. + + https://github.com/mdrjr/c2_bootini
package/odroid-scripts/S50odroidc2_fb new file +20 -0
@@ -0,0 +1,20 @@ +#!/bin/sh +# +# Set up frame buffer +# + +case "$1" in + start) + echo "Setting up display..." + /usr/sbin/odroidc2_init_fb.sh + ;; + stop) + ;; + restart|reload) + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 +esac + +exit $?
package/odroid-scripts/odroid-scripts.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed hash +sha256 779e8beccf8c66d51e495a4cc0e6eccf72c295499a1ecdc0740aa4459de786a0 odroid-scripts-a252de04562dcf8d8a4918a544b45a9e3d46d2fb.tar.gz
package/odroid-scripts/odroid-scripts.mk new file +32 -0
@@ -0,0 +1,32 @@ +################################################################################ +# +# odroid-scripts +# +################################################################################ + +ODROID_SCRIPTS_VERSION = a252de04562dcf8d8a4918a544b45a9e3d46d2fb +ODROID_SCRIPTS_SITE = $(call github,mdrjr,c2_bootini,$(ODROID_SCRIPTS_VERSION)) +ODROID_SCRIPTS_LICENSE = unclear + +ifeq ($(BR2_PACKAGE_HAS_UDEV),y) + define ODROID_SCRIPTS_INSTALL_UDEV_RULES + $(INSTALL) -D -m 0644 $(@D)/10-odroid.rules $(TARGET_DIR)/etc/udev/rules.d/10-odroid.rules + endef +endif + +define ODROID_SCRIPTS_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/c2_init.sh $(TARGET_DIR)/usr/sbin/odroidc2_init_fb.sh + $(ODROID_SCRIPTS_INSTALL_UDEV_RULES) +endef + +define ODROID_SCRIPTS_INSTALL_INIT_SYSTEMD + $(INSTALL) -D -m 0644 $(@D)/amlogic.service $(TARGET_DIR)/usr/lib/systemd/system/odroidc2_fb.service + mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants + ln -fs ../../../../usr/lib/systemd/system/odroidc2_fb.service $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/odroidc2_fb.service +endef + +define ODROID_SCRIPTS_INSTALL_INIT_SYSV + $(INSTALL) -D -m 0755 package/odroid-scripts/S50odroidc2_fb $(TARGET_DIR)/etc/init.d/S50odroidc2_fb +endef + +$(eval $(generic-package))
Signature · 1 line
2.9.2
PATCH 2/3 odroid: select odroid-scripts for odroidc2 defconfig
--- configs/odroidc2_defconfig | 1 + 1 file changed, 1 insertion(+)
configs/odroidc2_defconfig +1 -0
@@ -6,6 +6,7 @@ BR2_TARGET_GENERIC_HOSTNAME="odroidc2" BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y BR2_ROOTFS_POST_IMAGE_SCRIPT="board/hardkernel/odroidc2/post-image.sh" +BR2_PACKAGE_ODROID_SCRIPTS=y # Kernel BR2_KERNEL_HEADERS_VERSION=y
Signature · 1 line
2.9.2
Thomas Petazzoni
AppliedPATCH 2/3 odroid: select odroid-scripts for odroidc2 defconfig
Hello,
Quoted 4 lines · Dagg Stompler
Signed-off-by Dagg Stompler <[email protected]>--- configs/odroidc2_defconfig | 1 + 1 file changed, 1 insertion(+)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v5 3/3 odroid-mali: New Package
In reply to Dagg Stompler---
v4 -> v5:
- fix license (Thomas Petazzoni).
- select odroid-scripts if this pkg is selected instead of depends (Thomas Petazzoni).
- fix lib install path to include /usr and remove it from the call (Thomas Petazzoni).
- replace install of multiple files with the proper cp command (Thomas Petazzoni).
- use the proper cp command for headers and libs (Thomas Petazzoni).
v3 -> v4:
- update repo rev to 46fe49f37e3506c6205ad8c50980eca9bfff11e3.
- update hash
- 32 and 64 bit flavors can now use the same repo rev.
v2 -> v3:
- fix pkgconfig installation.
v1 -> v2:
- added hash for 32 bits revision.
- fix file permissions for S50odroidc2_fb and odroidc2_init_fb.sh
package/Config.in | 1 + package/odroid-mali/Config.in | 21 +++++++++++++++++++++ package/odroid-mali/odroid-mali.hash | 2 ++ package/odroid-mali/odroid-mali.mk | 36 ++++++++++++++++++++++++++++++++++++ 4 files changed, 60 insertions(+) create mode 100644 package/odroid-mali/Config.in create mode 100644 package/odroid-mali/odroid-mali.hash create mode 100644 package/odroid-mali/odroid-mali.mk
package/Config.in +1 -0
@@ -414,6 +414,7 @@ endmenu source "package/nvidia-driver/Config.in" source "package/nvidia-tegra23/Config.in" source "package/nvme/Config.in" + source "package/odroid-mali/Config.in" source "package/ofono/Config.in" source "package/ola/Config.in" source "package/on2-8170-modules/Config.in"
package/odroid-mali/Config.in new file +21 -0
@@ -0,0 +1,21 @@ +config BR2_PACKAGE_ODROID_MALI + bool "odroid-mali" + select BR2_PACKAGE_HAS_LIBEGL + select BR2_PACKAGE_HAS_LIBGLES + select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS + select BR2_PACKAGE_FBSET + select BR2_PACKAGE_ODROID_SCRIPTS + depends on BR2_TOOLCHAIN_USES_GLIBC + depends on BR2_aarch64 || BR2_arm + help + Install the ARM Mali drivers for odroidc2 based systems. + + https://github.com/mdrjr/c2_mali + +if BR2_PACKAGE_ODROID_MALI +config BR2_PACKAGE_PROVIDES_LIBEGL + default "odroid-mali" + +config BR2_PACKAGE_PROVIDES_LIBGLES + default "odroid-mali" +endif
package/odroid-mali/odroid-mali.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed hash +sha256 29d98ed4b8694b860d9289787c416faa847b0de26d36580a53add1752b4c2e9a odroid-mali-46fe49f37e3506c6205ad8c50980eca9bfff11e3.tar.gz
package/odroid-mali/odroid-mali.mk new file +36 -0
@@ -0,0 +1,36 @@ +################################################################################ +# +# odroid-mali +# +################################################################################ + +ODROID_MALI_VERSION = 46fe49f37e3506c6205ad8c50980eca9bfff11e3 +ODROID_MALI_SITE = $(call github,mdrjr,c2_mali,$(ODROID_MALI_VERSION)) +ODROID_MALI_LICENSE = Hardkernel EULA +ODROID_MALI_LICENSE_FILES = README.md + +ODROID_MALI_INSTALL_STAGING = YES +ODROID_MALI_PROVIDES = libegl libgles + +ifeq ($(BR2_aarch64),y) +ODROID_MALI_LIBS_INSTALL_ARCH=mali_libs +else +ODROID_MALI_LIBS_INSTALL_ARCH=32bit_libs +endif + +define ODROID_MALI_INSTALL_LIBS + cp -dpfr $(@D)/fbdev/$(ODROID_MALI_LIBS_INSTALL_ARCH)/lib* $(1)/usr/lib/ +endef + +define ODROID_MALI_INSTALL_STAGING_CMDS + $(call ODROID_MALI_INSTALL_LIBS,$(STAGING_DIR)) + $(INSTALL) -d $(STAGING_DIR)/usr/lib/pkgconfig + cp -dpfr $(@D)/pkgconfig/*.pc $(STAGING_DIR)/usr/lib/pkgconfig/ + cp -dpfr $(@D)/fbdev/mali_headers/* $(STAGING_DIR)/usr/include +endef + +define ODROID_MALI_INSTALL_TARGET_CMDS + $(call ODROID_MALI_INSTALL_LIBS,$(TARGET_DIR)) +endef + +$(eval $(generic-package))
Signature · 1 line
2.9.2
PATCH v5 3/3 odroid-mali: New Package
Hello,
package/odroid-mali/Config.in line 6
Quoted 12 lines · Dagg Stompler
package/odroid-mali/Config.in new file +6
-0@@ -0,0 +1,21 @@ +config BR2_PACKAGE_ODROID_MALI + bool "odroid-mali" + select BR2_PACKAGE_HAS_LIBEGL + select BR2_PACKAGE_HAS_LIBGLES + select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS + select BR2_PACKAGE_FBSET
fbset is not used by odroid-mali, it's used by odroid-scripts, so this dependency should be in odroid-scripts. So I've dropped those two lines from here. Could you send a patch that adds the dependency to odroid-scripts?
package/odroid-mali/Config.in line 7
Quoted 1 line
package/odroid-mali/Config.in new file +1
-0+ select BR2_PACKAGE_ODROID_SCRIPTS
I've added a comment that indicates it's a runtime dependency.
package/odroid-mali/Config.in line 8
Quoted 1 line
package/odroid-mali/Config.in new file +1
-0+ depends on BR2_TOOLCHAIN_USES_GLIBC
I've added a Config.in comment that helps the user to know that odroid-mali needs glibc.
package/odroid-mali/Config.in line 9
Quoted 1 line
package/odroid-mali/Config.in new file +1
-0+ depends on BR2_aarch64 || BR2_arm
On ARM, the prebuilt libraries use the EABIhf ABI, so I've changed BR2_arm to BR2_ARM_EABIHF.
It's worth mentioning that for AArch64, this repo contains the OpenGL libraries for X11. If you have the opportunity to test them, it would be nice to add support for them.
package/odroid-mali/Config.in line 11
Quoted 2 lines
package/odroid-mali/Config.in new file +2
-0+ifeq ($(BR2_aarch64),y) +ODROID_MALI_LIBS_INSTALL_ARCH=mali_libs
I've changed this to:
ODROID_MALI_INSTALL_ARCH = mali_libs
I.e, simplified the name of the variable, and added spaces around the equal sign.
Applied with those changes. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v5 3/3 odroid-mali: New Package
Greetings
Quoted 13 lines
Hello,
Quoted 9 lines · Dagg Stompler
package/odroid-mali/Config.in new file +3
-0@@ -0,0 +1,21 @@ +config BR2_PACKAGE_ODROID_MALI + bool "odroid-mali" + select BR2_PACKAGE_HAS_LIBEGL
Quoted 8 lines
package/odroid-mali/Config.in line 6
Quoted 3 lines
package/odroid-mali/Config.in new file +3
-0+ select BR2_PACKAGE_HAS_LIBGLES + select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS + select BR2_PACKAGE_FBSETfbset is not used by odroid-mali, it's used by odroid-scripts, so this dependency should be in odroid-scripts. So I've dropped those two lines from here. Could you send a patch that adds the dependency to odroid-scripts?
you are correct, will send a new patch.
Quoted 10 lines
package/odroid-mali/Config.in line 7
Quoted 2 lines
package/odroid-mali/Config.in new file +1
-0+ select BR2_PACKAGE_ODROID_SCRIPTSI've added a comment that indicates it's a runtime dependency.
package/odroid-mali/Config.in line 8
Quoted 1 line
package/odroid-mali/Config.in new file +1
-0+ depends on BR2_TOOLCHAIN_USES_GLIBCI've added a Config.in comment that helps the user to know that odroid-mali needs glibc.
Quoted 8 lines
package/odroid-mali/Config.in line 9
Quoted 1 line
package/odroid-mali/Config.in new file +1
-0+ depends on BR2_aarch64 || BR2_armOn ARM, the prebuilt libraries use the EABIhf ABI, so I've changed
BR2_armtoBR2_ARM_EABIHF.It's worth mentioning that for AArch64, this repo contains the OpenGL libraries for X11. If you have the opportunity to test them, it would be nice to add support for them.
I wanted to test it with kodi but 16 doesn't support aarch64.
there is a DDX driver for X which I intend to add as soon as I understand how to build it.
Quoted 6 lines
package/odroid-mali/Config.in line 11
Quoted 3 lines
package/odroid-mali/Config.in new file +2
-0+ifeq ($(BR2_aarch64),y) +ODROID_MALI_LIBS_INSTALL_ARCH=mali_libsI've changed this to:
Quoted 8 lines
ODROID_MALI_INSTALL_ARCH=mali_libsI.e, simplified the name of the variable, and added spaces around the equal sign.
Applied with those changes. Thanks!
Thomas
Dagg
PATCH v5 3/3 odroid-mali: New Package
Hello,
Quoted 6 lines · daggs
Quoted 4 lines
fbset is not used by odroid-mali, it's used by odroid-scripts, so this dependency should be in odroid-scripts. So I've dropped those two lines from here. Could you send a patch that adds the dependency to odroid-scripts?
you are correct, will send a new patch.
Great, thanks!
Quoted 6 lines
Quoted 3 lines
It's worth mentioning that for AArch64, this repo contains the OpenGL libraries for X11. If you have the opportunity to test them, it would be nice to add support for them.
I wanted to test it with kodi but 16 doesn't support aarch64.
there is a DDX driver for X which I intend to add as soon as I understand how to build it.
Good, thanks! Note that Bernd has a branch with Kodi 17, if you want to test it.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v5 3/3 odroid-mali: New Package
Greetings,
Quoted 17 lines
Hello,
Quoted 6 lines · daggs
Quoted 4 lines
fbset is not used by odroid-mali, it's used by odroid-scripts, so this dependency should be in odroid-scripts. So I've dropped those two lines from here. Could you send a patch that adds the dependency to odroid-scripts?
you are correct, will send a new patch.
Great, thanks!
Quoted 4 lines
Quoted 3 lines
It's worth mentioning that for AArch64, this repo contains the OpenGL libraries for X11. If you have the opportunity to test them, it would be nice to add support for them.
Quoted 5 lines
Quoted 2 lines
I wanted to test it with kodi but 16 doesn't support aarch64.
there is a DDX driver for X which I intend to add as soon as I understand how to build it.Good, thanks! Note that Bernd has a branch with Kodi 17, if you want to test it.
as it is still in RC/Beta, I'd rather not, will wait for the official release.
Quoted 4 lines
Best regards,
Thomas
Dagg.
PATCH v4 1/3 odroid-scripts: New Package.
In reply to Dagg StomplerHello,
Quoted 1 line · Dagg Stompler
Signed-off-by Dagg Stompler <[email protected]>
Thanks, I've applied with a few minor changes, see below.
package/Config.in menu "System tools" · line 1693
Quoted 9 lines
package/Config.in +1
-0@@ -1690,6 +1690,7 @@ menu "System tools" source "package/ncdu/Config.in" source "package/numactl/Config.in" source "package/nut/Config.in" + source "package/odroid-scripts/Config.in"
I've moved to "Hardware handling" instead of "System tools".
Quoted 8 lines
package/odroid-scripts/odroid-scripts.mk new file +2
-0@@ -0,0 +1,32 @@ +################################################################################ +#
package/odroid-scripts/odroid-scripts.mk line 12
Quoted 10 lines
package/odroid-scripts/odroid-scripts.mk new file +10
-0+# odroid-scripts +# +################################################################################ + +ODROID_SCRIPTS_VERSION = a252de04562dcf8d8a4918a544b45a9e3d46d2fb +ODROID_SCRIPTS_SITE = $(call github,mdrjr,c2_bootini,$(ODROID_SCRIPTS_VERSION)) +ODROID_SCRIPTS_LICENSE = unclear + +ifeq ($(BR2_PACKAGE_HAS_UDEV),y) + define ODROID_SCRIPTS_INSTALL_UDEV_RULES
We typically do not indent such lines.
package/odroid-scripts/odroid-scripts.mk line 13
Quoted 1 line
package/odroid-scripts/odroid-scripts.mk new file +1
-0+ $(INSTALL) -D -m 0644 $(@D)/10-odroid.rules $(TARGET_DIR)/etc/udev/rules.d/10-odroid.rules
I've split this line.
package/odroid-scripts/odroid-scripts.mk line 25
Quoted 12 lines
package/odroid-scripts/odroid-scripts.mk new file +12
-0+ endef +endif + +define ODROID_SCRIPTS_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/c2_init.sh $(TARGET_DIR)/usr/sbin/odroidc2_init_fb.sh + $(ODROID_SCRIPTS_INSTALL_UDEV_RULES) +endef + +define ODROID_SCRIPTS_INSTALL_INIT_SYSTEMD + $(INSTALL) -D -m 0644 $(@D)/amlogic.service $(TARGET_DIR)/usr/lib/systemd/system/odroidc2_fb.service + mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants + ln -fs ../../../../usr/lib/systemd/system/odroidc2_fb.service $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/odroidc2_fb.service
Those long lines as well.
package/odroid-scripts/odroid-scripts.mk line 29
Quoted 4 lines
package/odroid-scripts/odroid-scripts.mk new file +4
-0+endef + +define ODROID_SCRIPTS_INSTALL_INIT_SYSV + $(INSTALL) -D -m 0755 package/odroid-scripts/S50odroidc2_fb $(TARGET_DIR)/etc/init.d/S50odroidc2_fb
And this one as well.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v4 1/3 odroid-scripts: New Package.
Greetings,
Quoted 7 lines
Hello,
Quoted 1 line · Dagg Stompler
Signed-off-by Dagg Stompler <[email protected]>Thanks, I've applied with a few minor changes, see below.
Quoted 11 lines
package/Config.in menu "System tools" · line 1693
Quoted 9 lines
package/Config.in +1
-0@@ -1690,6 +1690,7 @@ menu "System tools" source "package/ncdu/Config.in" source "package/numactl/Config.in" source "package/nut/Config.in" + source "package/odroid-scripts/Config.in"I've moved to "Hardware handling" instead of "System tools".
it was placed originally in Hardware handling, not sure how it ended up at System tools.
Quoted 48 lines
Quoted 9 lines
package/odroid-scripts/odroid-scripts.mk new file +2
-0@@ -0,0 +1,32 @@ +################################################################################ +#package/odroid-scripts/odroid-scripts.mk line 12
Quoted 10 lines
package/odroid-scripts/odroid-scripts.mk new file +10
-0+# odroid-scripts +# +################################################################################ + +ODROID_SCRIPTS_VERSION = a252de04562dcf8d8a4918a544b45a9e3d46d2fb +ODROID_SCRIPTS_SITE = $(call github,mdrjr,c2_bootini,$(ODROID_SCRIPTS_VERSION)) +ODROID_SCRIPTS_LICENSE = unclear + +ifeq ($(BR2_PACKAGE_HAS_UDEV),y) + define ODROID_SCRIPTS_INSTALL_UDEV_RULESWe typically do not indent such lines.
package/odroid-scripts/odroid-scripts.mk line 13
Quoted 1 line
package/odroid-scripts/odroid-scripts.mk new file +1
-0+ $(INSTALL) -D -m 0644 $(@D)/10-odroid.rules $(TARGET_DIR)/etc/udev/rules.d/10-odroid.rulesI've split this line.
package/odroid-scripts/odroid-scripts.mk line 25
Quoted 12 lines
package/odroid-scripts/odroid-scripts.mk new file +12
-0+ endef +endif + +define ODROID_SCRIPTS_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/c2_init.sh $(TARGET_DIR)/usr/sbin/odroidc2_init_fb.sh + $(ODROID_SCRIPTS_INSTALL_UDEV_RULES) +endef + +define ODROID_SCRIPTS_INSTALL_INIT_SYSTEMD + $(INSTALL) -D -m 0644 $(@D)/amlogic.service $(TARGET_DIR)/usr/lib/systemd/system/odroidc2_fb.service + mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants + ln -fs ../../../../usr/lib/systemd/system/odroidc2_fb.service $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/odroidc2_fb.serviceThose long lines as well.
package/odroid-scripts/odroid-scripts.mk line 29
Quoted 4 lines
package/odroid-scripts/odroid-scripts.mk new file +4
-0+endef + +define ODROID_SCRIPTS_INSTALL_INIT_SYSV + $(INSTALL) -D -m 0755 package/odroid-scripts/S50odroidc2_fb $(TARGET_DIR)/etc/init.d/S50odroidc2_fbAnd this one as well.
Quoted 3 lines
Thanks!
Thomas
ok, thanks for the help.
Dagg.