Skip to contentSkip to conversation

odroid-scripts: New Package.

PATCH Superseded Dagg Stompler 2 participants 8 messages Jul 24, 2016

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/2 odroid-scripts: New Package.

v2 -> v3:
- update repo rev to a252de04562dcf8d8a4918a544b45a9e3d46d2fb.
- update hash

v1 -> v2:
- fix hash type in hash file.

---
 configs/odroidc2_defconfig                 |  1 +
 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 ++++++++++++++++++++++++++++++
 6 files changed, 63 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
configs/odroidc2_defconfig +1 -0
index 43c2787..45ede62 100644
@@ -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
package/Config.in +1 -0
index 46ad276..a7858dc 100644
@@ -1688,6 +1688,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
new file mode 100644
index 0000000..48544b6
@@ -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
new file mode 100644
index 0000000..2aae59d
@@ -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
new file mode 100644
index 0000000..8fd4b2c
@@ -0,0 +1,2 @@
+#  Locally computed hash
+sha256 779e8beccf8c66d51e495a4cc0e6eccf72c295499a1ecdc0740aa4459de786a0 odroid-scripts-a252de04562dcf8d8a4918a544b45a9e3d46d2fb.tar.gz
package/odroid-scripts/odroid-scripts.mk new file +32 -0
new file mode 100644
index 0000000..445f2d8
@@ -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_EUDEV),y)
+	ODROID_SCRIPTS_INSTALL_UDEV_RULES = $(INSTALL) -D -m 0644 $(@D)/10-odroid.rules $(TARGET_DIR)/etc/udev/rules.d/10-odroid.rules
+else
+	ODROID_SCRIPTS_INSTALL_UDEV_RULES =
+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
#1 lore raw

PATCH v4 2/2 odroid-mali: New Package.

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
index a7858dc..f7e7592 100644
@@ -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
new file mode 100644
index 0000000..02c6ca0
@@ -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
+	depends on BR2_TOOLCHAIN_USES_GLIBC
+	depends on BR2_aarch64 || BR2_arm
+	depends on BR2_PACKAGE_ODROID_SCRIPTS
+	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
new file mode 100644
index 0000000..4d24824
@@ -0,0 +1,2 @@
+# Locally computed hash
+sha256 29d98ed4b8694b860d9289787c416faa847b0de26d36580a53add1752b4c2e9a  odroid-mali-46fe49f37e3506c6205ad8c50980eca9bfff11e3.tar.gz
package/odroid-mali/odroid-mali.mk new file +36 -0
new file mode 100644
index 0000000..17a7de2
@@ -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
+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 -aRP $(@D)/fbdev/$(ODROID_MALI_LIBS_INSTALL_ARCH)/lib* $(1)/lib/
+endef
+
+define ODROID_MALI_INSTALL_STAGING_CMDS
+	$(call ODROID_MALI_INSTALL_LIBS,$(STAGING_DIR)/usr)
+	$(INSTALL) -d $(STAGING_DIR)/usr/lib/pkgconfig
+	$(INSTALL) -m 644 $(@D)/pkgconfig/*.pc $(STAGING_DIR)/usr/lib/pkgconfig/
+	cp -aRP $(@D)/fbdev/mali_headers/* $(STAGING_DIR)/usr/include
+endef
+
+define ODROID_MALI_INSTALL_TARGET_CMDS
+	$(call ODROID_MALI_INSTALL_LIBS,$(TARGET_DIR)/usr)
+endef
+
+$(eval $(generic-package))
Signature · 1 line
2.9.2
#5 lore raw

PATCH v3 1/2 odroid-scripts: New Package.

In reply to Dagg Stompler

Hello,

Quoted 6 lines · Dagg Stompler

v2 -> v3:
- update repo rev to a252de04562dcf8d8a4918a544b45a9e3d46d2fb.
- update hash

v1 -> v2:
- fix hash type in hash file.

The changelog should not be part of the commit log.

Quoted 3 lines

---

It should be here.

Quoted 17 lines
 configs/odroidc2_defconfig                 |  1 +
 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 ++++++++++++++++++++++++++++++
 6 files changed, 63 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
configs/odroidc2_defconfig +0 -0
index 43c2787..45ede62 100644

configs/odroidc2_defconfig BR2_TARGET_GENERIC_HOSTNAME="odroidc2" · line 9

Quoted 4 lines
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

This should be part of a separate commit.

configs/odroidc2_defconfig BR2_TARGET_GENERIC_HOSTNAME="odroidc2" · line 11

Quoted 2 lines
configs/odroidc2_defconfig +2 -0
+ODROID_SCRIPTS_VERSION = a252de04562dcf8d8a4918a544b45a9e3d46d2fb
+ODROID_SCRIPTS_SITE = $(call github,mdrjr,c2_bootini,$(ODROID_SCRIPTS_VERSION))

This repository contains the boot.ini for which you add a copy in Buildroot (see our discussion from yesterday). Why don't we use this one? It seems to be pretty much the same.

configs/odroidc2_defconfig BR2_TARGET_GENERIC_HOSTNAME="odroidc2"

Quoted 3 lines
configs/odroidc2_defconfig +3 -0
+ODROID_SCRIPTS_LICENSE = unclear
+
+ifeq ($(BR2_PACKAGE_EUDEV),y)

BR2_PACKAGE_HAS_UDEV

so that it also works with systemd

configs/odroidc2_defconfig

Quoted 1 line
configs/odroidc2_defconfig +1 -0
+	ODROID_SCRIPTS_INSTALL_UDEV_RULES = $(INSTALL) -D -m 0644 $(@D)/10-odroid.rules $(TARGET_DIR)/etc/udev/rules.d/10-odroid.rules

Please use:

define ODROID_SCRIPTS_INSTALL_UDEV_RULES

	$(INSTALL) -D -m 0644 $(@D)/10-odroid.rules $(TARGET_DIR)/etc/udev/rules.d/10-odroid.rules

endef

configs/odroidc2_defconfig

Quoted 2 lines
configs/odroidc2_defconfig +2 -0
+else
+	ODROID_SCRIPTS_INSTALL_UDEV_RULES =

Not needed, by default variables are empty.

Quoted 6 lines
configs/odroidc2_defconfig +6 -0
+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

configs/odroidc2_defconfig

Quoted 10 lines
configs/odroidc2_defconfig +10 -0
+
+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

Other than that, looks good. Can you respin a new version?

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH v4 2/2 odroid-mali: New Package.

In reply to Dagg Stompler

Hello,

Quoted 11 lines · Dagg Stompler

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

The changelog should not be part of the commit log. It should go...

Quoted 3 lines

---

... here.

package/odroid-mali/Config.in line 9

Quoted 10 lines
 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/odroid-mali/Config.in new file +1 -0
+	depends on BR2_PACKAGE_ODROID_SCRIPTS

Why do you have this dependency?

package/odroid-mali/odroid-mali.mk line 9

Quoted 9 lines
package/odroid-mali/odroid-mali.mk new file +9 -0
+################################################################################
+#
+# odroid-mali
+#
+################################################################################
+
+ODROID_MALI_VERSION = 46fe49f37e3506c6205ad8c50980eca9bfff11e3
+ODROID_MALI_SITE = $(call github,mdrjr,c2_mali,$(ODROID_MALI_VERSION))
+ODROID_MALI_LICENSE = hardkernel

I think:

Hardkernel EULA

would be better here.

package/odroid-mali/odroid-mali.mk line 22

Quoted 13 lines
package/odroid-mali/odroid-mali.mk new file +13 -0
+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 -aRP $(@D)/fbdev/$(ODROID_MALI_LIBS_INSTALL_ARCH)/lib* $(1)/lib/

Make it:

	cp -aRP $(@D)/fbdev/$(ODROID_MALI_LIBS_INSTALL_ARCH)/lib* $(1)/usr/lib/

This way you just have to pass TARGET_DIR or STAGING_DIR, and not TARGET_DIR/usr and STAGING_DIR/usr.

Also, in Buildroot, we by convention use:

cp -dpfr

package/odroid-mali/odroid-mali.mk line 28

Quoted 6 lines
package/odroid-mali/odroid-mali.mk new file +6 -0
+endef
+
+define ODROID_MALI_INSTALL_STAGING_CMDS
+	$(call ODROID_MALI_INSTALL_LIBS,$(STAGING_DIR)/usr)
+	$(INSTALL) -d $(STAGING_DIR)/usr/lib/pkgconfig
+	$(INSTALL) -m 644 $(@D)/pkgconfig/*.pc $(STAGING_DIR)/usr/lib/pkgconfig/

Use cp

package/odroid-mali/odroid-mali.mk line 29

Quoted 1 line
package/odroid-mali/odroid-mali.mk new file +1 -0
+	cp -aRP $(@D)/fbdev/mali_headers/* $(STAGING_DIR)/usr/include

cp -dpfr

package/odroid-mali/odroid-mali.mk line 36

Quoted 7 lines
package/odroid-mali/odroid-mali.mk new file +7 -0
+endef
+
+define ODROID_MALI_INSTALL_TARGET_CMDS
+	$(call ODROID_MALI_INSTALL_LIBS,$(TARGET_DIR)/usr)
+endef
+
+$(eval $(generic-package))

Other than that, looks good.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
author
#6 lore raw

PATCH v3 1/2 odroid-scripts: New Package.

In reply to Thomas Petazzoni

Greetings,

Quoted 10 lines

Hello,

Quoted 6 lines · Dagg Stompler

v2 -> v3:
- update repo rev to a252de04562dcf8d8a4918a544b45a9e3d46d2fb.
- update hash

v1 -> v2:
- fix hash type in hash file.

Quoted 7 lines

The changelog should not be part of the commit log.

Quoted 3 lines

---

It should be here.

I always seems to forget were to place it.... :-/

Quoted 13 lines
Quoted 13 lines
 configs/odroidc2_defconfig                 |  1 +
 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 ++++++++++++++++++++++++++++++
 6 files changed, 63 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
Quoted 11 lines

configs/odroidc2_defconfig BR2_TARGET_GENERIC_HOSTNAME="odroidc2" · line 9

Quoted 9 lines
configs/odroidc2_defconfig +1 -0
index 43c2787..45ede62 100644
@@ -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

This should be part of a separate commit.

will do.

Quoted 8 lines

configs/odroidc2_defconfig BR2_TARGET_GENERIC_HOSTNAME="odroidc2" · line 11

Quoted 4 lines
configs/odroidc2_defconfig +2 -0
+ODROID_SCRIPTS_VERSION = a252de04562dcf8d8a4918a544b45a9e3d46d2fb
+ODROID_SCRIPTS_SITE = $(call github,mdrjr,c2_bootini,$(ODROID_SCRIPTS_VERSION))

This repository contains the boot.ini for which you add a copy in Buildroot (see our discussion from yesterday). Why don't we use this one? It seems to be pretty much the same.

nope it isn't, as said in the other mail, there are two parts that will cause the image to fail booting or misbehave:
1. consider the following diff:
+# Booting

-# Load Images
setenv loadaddr "0x11000000"
-setenv dtb_loadaddr "0x10000000"
+setenv dtb_loadaddr "0x1000000"
+setenv initrd_loadaddr "0x13000000"
+
+fatload mmc 0:1 ${initrd_loadaddr} uInitrd
fatload mmc 0:1 ${loadaddr} Image
fatload mmc 0:1 ${dtb_loadaddr} meson64_odroidc2.dtb
+fdt addr ${dtb_loadaddr}

-# Booting
-booti ${loadaddr} - ${dtb_loadaddr}
+ ...
+
+booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}

this will force buildroot to provide an initrd image, when asked, I was told to fetch the ubuntu's one. if no initrd is provided, the system will fail boot.
also taking ubuntu's initrd means hijacking it.

2. consider the following diff:
# Default Console Device Setting
-setenv condev "console=ttyS0,115200n8" # Serial Console
+setenv condev "console=ttyS0,115200n8 console=tty0" # on both

this resulted im my serial usb stop working, e.g. I didn't know where I was in the boot nor couldn't log in into the system.

without both of the changes, the system boots ok.

Quoted 8 lines

configs/odroidc2_defconfig BR2_TARGET_GENERIC_HOSTNAME="odroidc2"

Quoted 4 lines
configs/odroidc2_defconfig +3 -0
+ODROID_SCRIPTS_LICENSE = unclear
+
+ifeq ($(BR2_PACKAGE_EUDEV),y)

BR2_PACKAGE_HAS_UDEV

so that it also works with systemd

will do.

Quoted 9 lines

configs/odroidc2_defconfig

Quoted 2 lines
configs/odroidc2_defconfig +1 -0
+	ODROID_SCRIPTS_INSTALL_UDEV_RULES = $(INSTALL) -D -m 0644 $(@D)/10-odroid.rules $(TARGET_DIR)/etc/udev/rules.d/10-odroid.rules

Please use:

define ODROID_SCRIPTS_INSTALL_UDEV_RULES

	$(INSTALL) -D -m 0644 $(@D)/10-odroid.rules $(TARGET_DIR)/etc/udev/rules.d/10-odroid.rules

endef

same as above.

Quoted 4 lines

configs/odroidc2_defconfig

Quoted 2 lines
configs/odroidc2_defconfig +2 -0
+else
+	ODROID_SCRIPTS_INSTALL_UDEV_RULES =

Not needed, by default variables are empty.

will remove.

Quoted 11 lines
Quoted 11 lines
configs/odroidc2_defconfig +10 -0
+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
Quoted 8 lines

configs/odroidc2_defconfig

Quoted 6 lines
configs/odroidc2_defconfig +6 -0
+	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

Other than that, looks good. Can you respin a new version?

maybe later today.

thanks for the rejects.

Quoted 9 lines

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
author
#3 lore raw

PATCH v4 2/2 odroid-mali: New Package.

In reply to Thomas Petazzoni

Greetings,

Quoted 16 lines

Hello,

Quoted 11 lines · Dagg Stompler

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

Quoted 7 lines

The changelog should not be part of the commit log. It should go...

Quoted 3 lines

---

... here.

I'll never learn :-/ will do.

Quoted 10 lines
Quoted 9 lines
 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
Quoted 3 lines

package/odroid-mali/Config.in line 9

Quoted 1 line
package/odroid-mali/Config.in new file +1 -0
+	depends on BR2_PACKAGE_ODROID_SCRIPTS

Why do you have this dependency?

because afaiu, this will not work if the scripts form odroid-scripts got executed.

Quoted 13 lines

package/odroid-mali/odroid-mali.mk line 9

Quoted 10 lines
package/odroid-mali/odroid-mali.mk new file +9 -0
+################################################################################
+#
+# odroid-mali
+#
+################################################################################
+
+ODROID_MALI_VERSION = 46fe49f37e3506c6205ad8c50980eca9bfff11e3
+ODROID_MALI_SITE = $(call github,mdrjr,c2_mali,$(ODROID_MALI_VERSION))
+ODROID_MALI_LICENSE = hardkernel

I think:

Quoted 3 lines

Hardkernel EULA

would be better here.

will update.

Quoted 17 lines
Quoted 4 lines
package/odroid-mali/odroid-mali.mk new file +3 -0
+ODROID_MALI_LICENSE_FILES = README.md
+
+ODROID_MALI_INSTALL_STAGING = YES

package/odroid-mali/odroid-mali.mk line 22

Quoted 10 lines
package/odroid-mali/odroid-mali.mk new file +10 -0
+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 -aRP $(@D)/fbdev/$(ODROID_MALI_LIBS_INSTALL_ARCH)/lib* $(1)/lib/

Make it:

Quoted 9 lines
	cp -aRP $(@D)/fbdev/$(ODROID_MALI_LIBS_INSTALL_ARCH)/lib* $(1)/usr/lib/

This way you just have to pass TARGET_DIR or STAGING_DIR, and not TARGET_DIR/usr and STAGING_DIR/usr.

Also, in Buildroot, we by convention use:

cp -dpfr

understood.

Quoted 10 lines

package/odroid-mali/odroid-mali.mk line 28

Quoted 7 lines
package/odroid-mali/odroid-mali.mk new file +6 -0
+endef
+
+define ODROID_MALI_INSTALL_STAGING_CMDS
+	$(call ODROID_MALI_INSTALL_LIBS,$(STAGING_DIR)/usr)
+	$(INSTALL) -d $(STAGING_DIR)/usr/lib/pkgconfig
+	$(INSTALL) -m 644 $(@D)/pkgconfig/*.pc $(STAGING_DIR)/usr/lib/pkgconfig/

Use cp

Quoted 3 lines

package/odroid-mali/odroid-mali.mk line 29

Quoted 1 line
package/odroid-mali/odroid-mali.mk new file +1 -0
+	cp -aRP $(@D)/fbdev/mali_headers/* $(STAGING_DIR)/usr/include

cp -dpfr

will do.

Quoted 11 lines

package/odroid-mali/odroid-mali.mk line 36

Quoted 8 lines
package/odroid-mali/odroid-mali.mk new file +7 -0
+endef
+
+define ODROID_MALI_INSTALL_TARGET_CMDS
+	$(call ODROID_MALI_INSTALL_LIBS,$(TARGET_DIR)/usr)
+endef
+
+$(eval $(generic-package))

Other than that, looks good.

Quoted 1 line

Thomas

thanks for the rejects.

Quoted 9 lines
Signature · 7 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
#7 lore raw

PATCH v3 1/2 odroid-scripts: New Package.

In reply to daggs

Hello,

Quoted 9 lines · daggs
Quoted 7 lines

The changelog should not be part of the commit log.

Quoted 3 lines

---

It should be here.

I always seems to forget were to place it.... :-/

It's pretty simple:

"""
foo: new package

Blabla what this new package is all about. Blabla.

Signed-off-by John Doe

---
Changes since v2:
...
"""

Everything that is *above* the "---" sign gets kept in the Git history as the commit log. Everything that is *below" the "---" sign is ignored when the patch is applied.

Since the changelog is describing what was changed between iterations of the patch, we don't want the changelog to be committed forever in the Git history, so it should be below the "---" sign.

When doing a commit, you can simply introduce a "---" manually below your Signed-off-by and write your changelog here.

Quoted 3 lines

this resulted im my serial usb stop working, e.g. I didn't know where I was in the boot nor couldn't log in into the system.

without both of the changes, the system boots ok.

OK, makes sense. Thanks for explaining.

Quoted 3 lines
Quoted 1 line

Other than that, looks good. Can you respin a new version?

maybe later today.

Sure, or another day, there's no hurry.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#4 lore raw

PATCH v4 2/2 odroid-mali: New Package.

In reply to daggs

Hello,

Quoted 9 lines · daggs
Quoted 9 lines
Quoted 8 lines
 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  
Quoted 5 lines
Quoted 3 lines

package/odroid-mali/Config.in line 9

Quoted 1 line
package/odroid-mali/Config.in new file +1 -0
+	depends on BR2_PACKAGE_ODROID_SCRIPTS  

Why do you have this dependency?

because afaiu, this will not work if the scripts form odroid-scripts got executed.

I guess you meant "if the scripts from odroid-scripts were *not* executed", right ?

If that's the case, then I believe a "select
BR2_PACKAGE_ODROID_SCRIPTS" is probably better.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com