Skip to contentSkip to conversation

toolchain/toolchain-external: update Arm AArch64 toolchain 11.2-2022.02

PATCH In review Chris Dimich 4 participants 23 messages Aug 24, 2022 – Sep 17, 2022 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/7 toolchain/toolchain-external: update Arm AArch64 toolchain 11.2-2022.02

Updated to gcc 11.2, gdb 11, binutils 2.37, glibc 2.34.

See "Release Note":
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/downloads-1

---
 .../toolchain-external-arm-aarch64/Config.in                | 2 +-
 .../toolchain-external-arm-aarch64.hash                     | 6 +++---
 .../toolchain-external-arm-aarch64.mk                       | 6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)
toolchain/toolchain-external/toolchain-external-arm-aarch64/Config.in +1 -1
index 9eb5d64a9d..b5b4d137b8 100644
@@ -6,7 +6,7 @@ config BR2_TOOLCHAIN_EXTERNAL_ARM_AARCH64
 	select BR2_TOOLCHAIN_HAS_SSP
 	select BR2_INSTALL_LIBSTDCPP
 	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20
-	select BR2_TOOLCHAIN_GCC_AT_LEAST_10
+	select BR2_TOOLCHAIN_GCC_AT_LEAST_11
 	select BR2_TOOLCHAIN_HAS_FORTRAN
 	select BR2_TOOLCHAIN_HAS_OPENMP
 	help
toolchain/toolchain-external/toolchain-external-arm-aarch64/toolchain-external-arm-aarch64.hash +3 -3
index ca1ea48bcb..6d81f58594 100644
@@ -1,4 +1,4 @@
-# From https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/binrel/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz.asc
-md5  07bbe2b5277b75ba36a924e9136366a4  gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz
+# From https://developer.arm.com/-/media/Files/downloads/gnu/11.2-2022.02/binrel/gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf.tar.xz
+md5  712ee3fa6247ac3f619dd193f714fbc1  gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu.tar.xz
 # locally calculated
-sha256  1e33d53dea59c8de823bbdfe0798280bdcd138636c7060da9d77a97ded095a84  gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz
+sha256  52dbac3eb71dbe0916f60a8c5ab9b7dc9b66b3ce513047baa09fae56234e53f3  gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu.tar.xz
toolchain/toolchain-external/toolchain-external-arm-aarch64/toolchain-external-arm-aarch64.mk +3 -3
index 356e0810b3..3d340ea0d7 100644
@@ -4,9 +4,9 @@
 #
 ################################################################################
 
-TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION = 2021.07
-TOOLCHAIN_EXTERNAL_ARM_AARCH64_SITE = https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-$(TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION)/binrel
+TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION = 2022.02
+TOOLCHAIN_EXTERNAL_ARM_AARCH64_SITE = https://developer.arm.com/-/media/Files/downloads/gnu/11.2-$(TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION)/binrel
 
-TOOLCHAIN_EXTERNAL_ARM_AARCH64_SOURCE = gcc-arm-10.3-$(TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION)-x86_64-aarch64-none-linux-gnu.tar.xz
+TOOLCHAIN_EXTERNAL_ARM_AARCH64_SOURCE = gcc-arm-11.2-$(TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION)-x86_64-aarch64-none-linux-gnu.tar.xz
 
 $(eval $(toolchain-external-package))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 1/7 toolchain/toolchain-external: update Arm AArch64 toolchain 11.2-2022.02

Updated to gcc 11.2, gdb 11, binutils 2.37, glibc 2.34.

See "Release Note":
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/downloads-1

---
 .../toolchain-external-arm-aarch64/Config.in                | 2 +-
 .../toolchain-external-arm-aarch64.hash                     | 6 +++---
 .../toolchain-external-arm-aarch64.mk                       | 6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)
toolchain/toolchain-external/toolchain-external-arm-aarch64/Config.in +1 -1
index 9eb5d64a9d..b5b4d137b8 100644
@@ -6,7 +6,7 @@ config BR2_TOOLCHAIN_EXTERNAL_ARM_AARCH64
 	select BR2_TOOLCHAIN_HAS_SSP
 	select BR2_INSTALL_LIBSTDCPP
 	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20
-	select BR2_TOOLCHAIN_GCC_AT_LEAST_10
+	select BR2_TOOLCHAIN_GCC_AT_LEAST_11
 	select BR2_TOOLCHAIN_HAS_FORTRAN
 	select BR2_TOOLCHAIN_HAS_OPENMP
 	help
toolchain/toolchain-external/toolchain-external-arm-aarch64/toolchain-external-arm-aarch64.hash +3 -3
index ca1ea48bcb..6d81f58594 100644
@@ -1,4 +1,4 @@
-# From https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/binrel/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz.asc
-md5  07bbe2b5277b75ba36a924e9136366a4  gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz
+# From https://developer.arm.com/-/media/Files/downloads/gnu/11.2-2022.02/binrel/gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf.tar.xz
+md5  712ee3fa6247ac3f619dd193f714fbc1  gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu.tar.xz
 # locally calculated
-sha256  1e33d53dea59c8de823bbdfe0798280bdcd138636c7060da9d77a97ded095a84  gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz
+sha256  52dbac3eb71dbe0916f60a8c5ab9b7dc9b66b3ce513047baa09fae56234e53f3  gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu.tar.xz
toolchain/toolchain-external/toolchain-external-arm-aarch64/toolchain-external-arm-aarch64.mk +3 -3
index 356e0810b3..3d340ea0d7 100644
@@ -4,9 +4,9 @@
 #
 ################################################################################
 
-TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION = 2021.07
-TOOLCHAIN_EXTERNAL_ARM_AARCH64_SITE = https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-$(TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION)/binrel
+TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION = 2022.02
+TOOLCHAIN_EXTERNAL_ARM_AARCH64_SITE = https://developer.arm.com/-/media/Files/downloads/gnu/11.2-$(TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION)/binrel
 
-TOOLCHAIN_EXTERNAL_ARM_AARCH64_SOURCE = gcc-arm-10.3-$(TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION)-x86_64-aarch64-none-linux-gnu.tar.xz
+TOOLCHAIN_EXTERNAL_ARM_AARCH64_SOURCE = gcc-arm-11.2-$(TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION)-x86_64-aarch64-none-linux-gnu.tar.xz
 
 $(eval $(toolchain-external-package))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Chris, All,

On 2022-08-24 12:25 -0700, Chris Dimich spake thusly:

Quoted 1 line

Updated to gcc 11.2, gdb 11, binutils 2.37, glibc 2.34.

Thomas already applied that patch from a previous iteration of your series, as far as I can see:

    https://lore.kernel.org/buildroot/20220824131545.3f3d245e@windsurf/
    https://git.buildroot.org/buildroot/commit/?h=next&id=34cf3a15c9da81afb6cab6c56babd5a2096e44ca

Regards,
Yann E. MORIN.

Quoted 59 lines

See "Release Note":
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/downloads-1

---
 .../toolchain-external-arm-aarch64/Config.in                | 2 +-
 .../toolchain-external-arm-aarch64.hash                     | 6 +++---
 .../toolchain-external-arm-aarch64.mk                       | 6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)
toolchain/toolchain-external/toolchain-external-arm-aarch64/Config.in +1 -1
index 9eb5d64a9d..b5b4d137b8 100644
@@ -6,7 +6,7 @@ config BR2_TOOLCHAIN_EXTERNAL_ARM_AARCH64
 	select BR2_TOOLCHAIN_HAS_SSP
 	select BR2_INSTALL_LIBSTDCPP
 	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20
-	select BR2_TOOLCHAIN_GCC_AT_LEAST_10
+	select BR2_TOOLCHAIN_GCC_AT_LEAST_11
 	select BR2_TOOLCHAIN_HAS_FORTRAN
 	select BR2_TOOLCHAIN_HAS_OPENMP
 	help
toolchain/toolchain-external/toolchain-external-arm-aarch64/toolchain-external-arm-aarch64.hash +3 -3
index ca1ea48bcb..6d81f58594 100644
@@ -1,4 +1,4 @@
-# From https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/binrel/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz.asc
-md5  07bbe2b5277b75ba36a924e9136366a4  gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz
+# From https://developer.arm.com/-/media/Files/downloads/gnu/11.2-2022.02/binrel/gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf.tar.xz
+md5  712ee3fa6247ac3f619dd193f714fbc1  gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu.tar.xz
 # locally calculated
-sha256  1e33d53dea59c8de823bbdfe0798280bdcd138636c7060da9d77a97ded095a84  gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz
+sha256  52dbac3eb71dbe0916f60a8c5ab9b7dc9b66b3ce513047baa09fae56234e53f3  gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu.tar.xz
toolchain/toolchain-external/toolchain-external-arm-aarch64/toolchain-external-arm-aarch64.mk +3 -3
index 356e0810b3..3d340ea0d7 100644
@@ -4,9 +4,9 @@
 #
 ################################################################################
 
-TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION = 2021.07
-TOOLCHAIN_EXTERNAL_ARM_AARCH64_SITE = https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-$(TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION)/binrel
+TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION = 2022.02
+TOOLCHAIN_EXTERNAL_ARM_AARCH64_SITE = https://developer.arm.com/-/media/Files/downloads/gnu/11.2-$(TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION)/binrel
 
-TOOLCHAIN_EXTERNAL_ARM_AARCH64_SOURCE = gcc-arm-10.3-$(TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION)-x86_64-aarch64-none-linux-gnu.tar.xz
+TOOLCHAIN_EXTERNAL_ARM_AARCH64_SOURCE = gcc-arm-11.2-$(TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION)-x86_64-aarch64-none-linux-gnu.tar.xz
 
 $(eval $(toolchain-external-package))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

PATCH 2/7 package/weston: add BR2_PACKAGE_WESTON_DEPRECATED_WL_SHELL config

In reply to Chris Dimich

In the case of the vivante sdk, the deprecated-wl-shell option needs to be enabled. Otherwise, apps using the sdk cannot run on weston/wayland.

---
 package/weston/Config.in | 7 +++++++
 package/weston/weston.mk | 4 ++++
 2 files changed, 11 insertions(+)
package/weston/Config.in +7 -0
index 3b4e932b7d..c560c32b50 100644
@@ -164,4 +164,11 @@ comment "demo clients needs an OpenGL ES provider, an OpenEGL-capable Wayland ba
 		!BR2_USE_WCHAR || !BR2_PACKAGE_HAS_LIBGLES || \
 		!BR2_PACKAGE_HAS_LIBEGL_WAYLAND || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
 
+config BR2_PACKAGE_WESTON_DEPRECATED_WL_SHELL
+	bool "deprecated wl shell"
+	help
+	  In the case of the vivante sdk, the deprecated-wl-shell option
+	  needs to be enabled. Otherwise, apps using the sdk cannot
+	  run on weston/wayland.
+
 endif
package/weston/weston.mk +4 -0
index e6c54ee7aa..ad4d81425e 100644
@@ -186,4 +186,8 @@ else
 WESTON_CONF_OPTS += -Ddemo-clients=false
 endif
 
+ifeq ($(BR2_PACKAGE_WESTON_DEPRECATED_WL_SHELL),y)
+WESTON_CONF_OPTS += -Ddeprecated-wl-shell=true
+endif
+
 $(eval $(meson-package))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

PATCH 2/7 package/weston: add BR2_PACKAGE_WESTON_DEPRECATED_WL_SHELL config

In reply to Chris Dimich

In the case of the vivante sdk, the deprecated-wl-shell option needs to be enabled. Otherwise, apps using the sdk cannot run on weston/wayland.

---
 package/weston/Config.in | 7 +++++++
 package/weston/weston.mk | 4 ++++
 2 files changed, 11 insertions(+)
package/weston/Config.in +7 -0
index 3b4e932b7d..c560c32b50 100644
@@ -164,4 +164,11 @@ comment "demo clients needs an OpenGL ES provider, an OpenEGL-capable Wayland ba
 		!BR2_USE_WCHAR || !BR2_PACKAGE_HAS_LIBGLES || \
 		!BR2_PACKAGE_HAS_LIBEGL_WAYLAND || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
 
+config BR2_PACKAGE_WESTON_DEPRECATED_WL_SHELL
+	bool "deprecated wl shell"
+	help
+	  In the case of the vivante sdk, the deprecated-wl-shell option
+	  needs to be enabled. Otherwise, apps using the sdk cannot
+	  run on weston/wayland.
+
 endif
package/weston/weston.mk +4 -0
index e6c54ee7aa..ad4d81425e 100644
@@ -186,4 +186,8 @@ else
 WESTON_CONF_OPTS += -Ddemo-clients=false
 endif
 
+ifeq ($(BR2_PACKAGE_WESTON_DEPRECATED_WL_SHELL),y)
+WESTON_CONF_OPTS += -Ddeprecated-wl-shell=true
+endif
+
 $(eval $(meson-package))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

Re: [Buildroot] [PATCH 2/7] package/weston: add BR2_PACKAGE_WESTON_DEPRECATED_WL_SHELL config

Chris, All,

On 2022-08-24 12:25 -0700, Chris Dimich spake thusly:

Quoted 2 lines

In the case of the vivante sdk, the deprecated-wl-shell option needs to be enabled. Otherwise, apps using the sdk cannot run on weston/wayland.

Note that this option has been entirely removed upstream in e6b8f5a5e40c (remove wl_shell), commited 2022-03-08, and present in tag 10.0.91, which means that the next release of weston will no longer have that option.

I am a bit relunctant at adding this in Buildroot, because that means the vivante stuff will be broken when we bump weston, or we won't be able to bump weston.

Besides, your series does not even make use of that new option; i.e. nothing selects BR2_PACKAGE_WESTON_DEPRECATED_WL_SHELL.

So, I would prefer not to add that option at all, knowing that it will soon be removed.

Regards,
Yann E. MORIN.

Quoted 42 lines
---
 package/weston/Config.in | 7 +++++++
 package/weston/weston.mk | 4 ++++
 2 files changed, 11 insertions(+)
package/weston/Config.in +7 -0
index 3b4e932b7d..c560c32b50 100644
@@ -164,4 +164,11 @@ comment "demo clients needs an OpenGL ES provider, an OpenEGL-capable Wayland ba
 		!BR2_USE_WCHAR || !BR2_PACKAGE_HAS_LIBGLES || \
 		!BR2_PACKAGE_HAS_LIBEGL_WAYLAND || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
 
+config BR2_PACKAGE_WESTON_DEPRECATED_WL_SHELL
+	bool "deprecated wl shell"
+	help
+	  In the case of the vivante sdk, the deprecated-wl-shell option
+	  needs to be enabled. Otherwise, apps using the sdk cannot
+	  run on weston/wayland.
+
 endif
package/weston/weston.mk +4 -0
index e6c54ee7aa..ad4d81425e 100644
@@ -186,4 +186,8 @@ else
 WESTON_CONF_OPTS += -Ddemo-clients=false
 endif
 
+ifeq ($(BR2_PACKAGE_WESTON_DEPRECATED_WL_SHELL),y)
+WESTON_CONF_OPTS += -Ddeprecated-wl-shell=true
+endif
+
 $(eval $(meson-package))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#6 lore raw

Re: [Buildroot] [PATCH 2/7] package/weston: add BR2_PACKAGE_WESTON_DEPRECATED_WL_SHELL config

Hi Yann,

Okay, understood. This should be dropped if mainline removed it completely.

Thanks,

Chris Dimich
Boundary Devices, LLC
www.boundarydevices.com
7 Orchard Road, Suite 102*|*Lake Forest, CA 92630

Quoted 81 lines · Yann E. MORIN

Chris, All,

On 2022-08-24 12:25 -0700, Chris Dimich spake thusly:

Quoted 2 lines

In the case of the vivante sdk, the deprecated-wl-shell option needs to be enabled. Otherwise, apps using the sdk cannot run on weston/wayland.

Note that this option has been entirely removed upstream in e6b8f5a5e40c (remove wl_shell), commited 2022-03-08, and present in tag 10.0.91, which means that the next release of weston will no longer have that option.

I am a bit relunctant at adding this in Buildroot, because that means the vivante stuff will be broken when we bump weston, or we won't be able to bump weston.

Besides, your series does not even make use of that new option; i.e. nothing selects BR2_PACKAGE_WESTON_DEPRECATED_WL_SHELL.

So, I would prefer not to add that option at all, knowing that it will soon be removed.

Regards,
Yann E. MORIN.

package/weston/Config.in comment "demo clients needs an OpenGL ES provider,

Quoted 11 lines
---
 package/weston/Config.in | 7 +++++++
 package/weston/weston.mk | 4 ++++
 2 files changed, 11 insertions(+)
package/weston/Config.in +0 -0
index 3b4e932b7d..c560c32b50 100644
@@ -164,4 +164,11 @@ comment "demo clients needs an OpenGL ES provider,

an OpenEGL-capable Wayland ba

package/weston/Config.in comment "demo clients needs an OpenGL ES provider, · line 165

Quoted 2 lines
package/weston/Config.in +0 -0
              !BR2_USE_WCHAR || !BR2_PACKAGE_HAS_LIBGLES || \
              !BR2_PACKAGE_HAS_LIBEGL_WAYLAND ||

!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9

Quoted 25 lines
package/weston/Config.in +7 -0
+config BR2_PACKAGE_WESTON_DEPRECATED_WL_SHELL
+     bool "deprecated wl shell"
+     help
+       In the case of the vivante sdk, the deprecated-wl-shell option
+       needs to be enabled. Otherwise, apps using the sdk cannot
+       run on weston/wayland.
+
 endif
package/weston/weston.mk +4 -1
index e6c54ee7aa..ad4d81425e 100644
@@ -186,4 +186,8 @@ else
 WESTON_CONF_OPTS += -Ddemo-clients=false
 endif
 
+ifeq ($(BR2_PACKAGE_WESTON_DEPRECATED_WL_SHELL),y)
+WESTON_CONF_OPTS += -Ddeprecated-wl-shell=true
+endif
+
 $(eval $(meson-package))
--

2.34.1

Quoted 4 lines

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

--

.-----------------.--------------------.------------------.--------------------.

|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics'
conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___
     |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is
no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v
 conspiracy.  |
Quoted 2 lines

'------------------------------^-------^------------------^--------------------'

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#7 lore raw

PATCH 3/7 package/freescale-imx/kernel-module-imx-gpu-viv: bump to version 6.4.3.p4.2

In reply to Chris Dimich

To match NXP 5.15.32-2.0.0 release.

---
 .../kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.hash    | 2 +-
 .../kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.mk      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.hash +1 -1
index ee105ef82c..ccb28bc4f6 100644
@@ -1,3 +1,3 @@
 # locally computed
-sha256  257c6cd8b01cfb6543827cbeb78409e6a2ad4ae321891751dcea1abc47d89379  kernel-module-imx-gpu-viv-ae0f3be0b7240f11cca191a3e2bdd4a445ee46e5.tar.gz
+sha256  b816ab94b1d248cfc5fe5f6381422346c273d01760bb324303e0298e10bd46e2  kernel-module-imx-gpu-viv-82c6cb6c607424403b8d76805bb17e7be74292f6.tar.gz
 sha256  b499eddebda05a8859e32b820a64577d91f1de2b52efa2a1575a2cb4000bc259  COPYING
package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.mk +1 -1
index 10505fdf17..f94890a438 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-KERNEL_MODULE_IMX_GPU_VIV_VERSION = ae0f3be0b7240f11cca191a3e2bdd4a445ee46e5
+KERNEL_MODULE_IMX_GPU_VIV_VERSION = 82c6cb6c607424403b8d76805bb17e7be74292f6 #6.4.3.p4.2
 KERNEL_MODULE_IMX_GPU_VIV_SITE = \
 	$(call github,Freescale,kernel-module-imx-gpu-viv,$(KERNEL_MODULE_IMX_GPU_VIV_VERSION))
 KERNEL_MODULE_IMX_GPU_VIV_LICENSE = GPL-2.0
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#8 lore raw

PATCH 3/7 package/freescale-imx/kernel-module-imx-gpu-viv: bump to version 6.4.3.p4.2

In reply to Chris Dimich

To match NXP 5.15.32-2.0.0 release.

---
 .../kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.hash    | 2 +-
 .../kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.mk      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.hash +1 -1
index ee105ef82c..ccb28bc4f6 100644
@@ -1,3 +1,3 @@
 # locally computed
-sha256  257c6cd8b01cfb6543827cbeb78409e6a2ad4ae321891751dcea1abc47d89379  kernel-module-imx-gpu-viv-ae0f3be0b7240f11cca191a3e2bdd4a445ee46e5.tar.gz
+sha256  b816ab94b1d248cfc5fe5f6381422346c273d01760bb324303e0298e10bd46e2  kernel-module-imx-gpu-viv-82c6cb6c607424403b8d76805bb17e7be74292f6.tar.gz
 sha256  b499eddebda05a8859e32b820a64577d91f1de2b52efa2a1575a2cb4000bc259  COPYING
package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.mk +1 -1
index 10505fdf17..f94890a438 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-KERNEL_MODULE_IMX_GPU_VIV_VERSION = ae0f3be0b7240f11cca191a3e2bdd4a445ee46e5
+KERNEL_MODULE_IMX_GPU_VIV_VERSION = 82c6cb6c607424403b8d76805bb17e7be74292f6 #6.4.3.p4.2
 KERNEL_MODULE_IMX_GPU_VIV_SITE = \
 	$(call github,Freescale,kernel-module-imx-gpu-viv,$(KERNEL_MODULE_IMX_GPU_VIV_VERSION))
 KERNEL_MODULE_IMX_GPU_VIV_LICENSE = GPL-2.0
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#9 lore raw

Re: [Buildroot] [PATCH 3/7] package/freescale-imx/kernel-module-imx-gpu-viv: bump to version 6.4.3.p4.2

Chris, All,

On 2022-08-24 12:26 -0700, Chris Dimich spake thusly:

Quoted 22 lines

To match NXP 5.15.32-2.0.0 release.

---
 .../kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.hash    | 2 +-
 .../kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.mk      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.hash +1 -1
index ee105ef82c..ccb28bc4f6 100644
@@ -1,3 +1,3 @@
 # locally computed
-sha256  257c6cd8b01cfb6543827cbeb78409e6a2ad4ae321891751dcea1abc47d89379  kernel-module-imx-gpu-viv-ae0f3be0b7240f11cca191a3e2bdd4a445ee46e5.tar.gz
+sha256  b816ab94b1d248cfc5fe5f6381422346c273d01760bb324303e0298e10bd46e2  kernel-module-imx-gpu-viv-82c6cb6c607424403b8d76805bb17e7be74292f6.tar.gz
 sha256  b499eddebda05a8859e32b820a64577d91f1de2b52efa2a1575a2cb4000bc259  COPYING
package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.mk +0 -0
index 10505fdf17..f94890a438 100644

package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.mk line 7

Quoted 5 lines
package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.mk +1 -1
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-KERNEL_MODULE_IMX_GPU_VIV_VERSION = ae0f3be0b7240f11cca191a3e2bdd4a445ee46e5
+KERNEL_MODULE_IMX_GPU_VIV_VERSION = 82c6cb6c607424403b8d76805bb17e7be74292f6 #6.4.3.p4.2

So not add a comment at the end of the line; this is known to cause issues in some situations, and we previously had to remove all of them in the past. Instead, just add such a comment just above the assignment;

    # Equivalent to 6.4.3.p4.2
    KERNEL_MODULE_IMX_GPU_VIV_VERSION = 82c6cb6c607424403b8d76805bb17e7be74292f6

I also have some relatively minor concerns with this package (not specifically due to your change, but prompted by it):

The git repository does have tags with the corresponding versions, e.g.:

    https://github.com/Freescale/kernel-module-imx-gpu-viv/releases/tag/upstream%2F6.4.3.p4.2

which is tag "upstream/6.4.3.p4.2".

However, here's the corresponding graphlog:

    *   82c6cb6 (HEAD -> master, origin/master, origin/HEAD) Merge tag 'upstream/6.4.3.p4.2'
    |\
    | * c897a6c (tag: upstream/6.4.3.p4.2, origin/upstream) Import 6.4.3.p4.2 original version
    * | a482c32 Merge tag 'upstream/6.4.3.p4.0'
    |\|
    | * 9c2d676 (tag: upstream/6.4.3.p4.0) Import 6.4.3.p4.0 original version
    * | 5c7b884 Merge tag 'upstream/6.4.3.p2.4'
    |\|
    | * 410ce59 (tag: upstream/6.4.3.p2.4) Import 6.4.3.p2.4 original version
    * | 5115a2b Merge tag 'upstream/6.4.3.p2.2'
    |\|
    | * e879a17 (tag: upstream/6.4.3.p2.2) Import 6.4.3.p2.2 original version
    * | ae0f3be gc_hal_kernel_platform_imx.config: remove build time/user * macros
    * | 20595cd Merge tag 'upstream/6.4.3.p2.0'
    |\|
    | * 8f1bf96 (tag: upstream/6.4.3.p2.0) Import 6.4.3.p2.0 original version
    ...

So, basically, we are using the commits on the master branch, but all that differs from the corresponding tag is (by running: git diff -p c897a6c..82c6cb6):

- there is an added 'fscl' (or variation thereof, like '+fscl') in 4

    locations, all appended to the version string;

- there are two macros that are removed (specifically by ae0f3be).

So, can't we use the tag instead of a sha1, and carry the patch from ae0f3be localy?

Otherwise, Chris and Gary: could you add tags on the master branch, maybe?

Thoughts?

Regards,
Yann E. MORIN.

Quoted 10 lines
package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.mk +0 -0
 KERNEL_MODULE_IMX_GPU_VIV_SITE = \
 	$(call github,Freescale,kernel-module-imx-gpu-viv,$(KERNEL_MODULE_IMX_GPU_VIV_VERSION))
 KERNEL_MODULE_IMX_GPU_VIV_LICENSE = GPL-2.0
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#10 lore raw

Re: [Buildroot] [PATCH 3/7] package/freescale-imx/kernel-module-imx-gpu-viv: bump to version 6.4.3.p4.2

Hi Yann,

Quoted 67 lines · Yann E. MORIN

Chris, All,

On 2022-08-24 12:26 -0700, Chris Dimich spake thusly:

Quoted 22 lines

To match NXP 5.15.32-2.0.0 release.

---
 .../kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.hash    | 2 +-
 .../kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.mk      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.hash +1 -1
index ee105ef82c..ccb28bc4f6 100644
@@ -1,3 +1,3 @@
 # locally computed
-sha256  257c6cd8b01cfb6543827cbeb78409e6a2ad4ae321891751dcea1abc47d89379  kernel-module-imx-gpu-viv-ae0f3be0b7240f11cca191a3e2bdd4a445ee46e5.tar.gz
+sha256  b816ab94b1d248cfc5fe5f6381422346c273d01760bb324303e0298e10bd46e2  kernel-module-imx-gpu-viv-82c6cb6c607424403b8d76805bb17e7be74292f6.tar.gz
 sha256  b499eddebda05a8859e32b820a64577d91f1de2b52efa2a1575a2cb4000bc259  COPYING
package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.mk +0 -0
index 10505fdf17..f94890a438 100644

package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.mk line 7

Quoted 5 lines
package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.mk +1 -1
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-KERNEL_MODULE_IMX_GPU_VIV_VERSION = ae0f3be0b7240f11cca191a3e2bdd4a445ee46e5
+KERNEL_MODULE_IMX_GPU_VIV_VERSION = 82c6cb6c607424403b8d76805bb17e7be74292f6 #6.4.3.p4.2

So not add a comment at the end of the line; this is known to cause issues in some situations, and we previously had to remove all of them in the past. Instead, just add such a comment just above the assignment;

    # Equivalent to 6.4.3.p4.2
    KERNEL_MODULE_IMX_GPU_VIV_VERSION = 82c6cb6c607424403b8d76805bb17e7be74292f6

I also have some relatively minor concerns with this package (not specifically due to your change, but prompted by it):

The git repository does have tags with the corresponding versions, e.g.:

    https://github.com/Freescale/kernel-module-imx-gpu-viv/releases/tag/upstream%2F6.4.3.p4.2

which is tag "upstream/6.4.3.p4.2".

However, here's the corresponding graphlog:

    *   82c6cb6 (HEAD -> master, origin/master, origin/HEAD) Merge tag 'upstream/6.4.3.p4.2'
    |\
    | * c897a6c (tag: upstream/6.4.3.p4.2, origin/upstream) Import 6.4.3.p4.2 original version
    * | a482c32 Merge tag 'upstream/6.4.3.p4.0'
    |\|
    | * 9c2d676 (tag: upstream/6.4.3.p4.0) Import 6.4.3.p4.0 original version
    * | 5c7b884 Merge tag 'upstream/6.4.3.p2.4'
    |\|
    | * 410ce59 (tag: upstream/6.4.3.p2.4) Import 6.4.3.p2.4 original version
    * | 5115a2b Merge tag 'upstream/6.4.3.p2.2'
    |\|
    | * e879a17 (tag: upstream/6.4.3.p2.2) Import 6.4.3.p2.2 original version
    * | ae0f3be gc_hal_kernel_platform_imx.config: remove build time/user * macros
    * | 20595cd Merge tag 'upstream/6.4.3.p2.0'
    |\|
    | * 8f1bf96 (tag: upstream/6.4.3.p2.0) Import 6.4.3.p2.0 original version
    ...
Quoted 6 lines

So, basically, we are using the commits on the master branch, but all that differs from the corresponding tag is (by running: git diff -p c897a6c..82c6cb6):

- there is an added 'fscl' (or variation thereof, like '+fscl') in 4

    locations, all appended to the version string;

'fslc' means that it is maintained by the community (fsl community) so the purpose of that tag is to show we're building from the external module source code from github/freescale (which is entirely maintained by the community).

Quoted 1 line

- there are two macros that are removed (specifically by ae0f3be).

Yes this is for Yocto builds in order not to break reproducibiliy of the build/module.

Quoted 2 lines

So, can't we use the tag instead of a sha1, and carry the patch from ae0f3be localy?

We could but this approach considers there's only that patch that matters.
In the past, the community-maintained module had more features than the driver from NXP, for instance it was supporting PREEMPT_RT when NXP didn't [1]. But I agree both branches are now very close.
I don't have any strong feelings to be honest, whatever you think is better for BR will do.

Quoted 2 lines

Otherwise, Chris and Gary: could you add tags on the master branch, maybe?

We could add a tag on master if needed. Would need to run it by the project maintainer (Otavio). Just let me know if you want to go that route.

Regards,
Gary

[1] https://github.com/Freescale/kernel-module-imx-gpu-viv/commit/f73c35b0
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#11 lore raw

Re: [Buildroot] [PATCH 3/7] package/freescale-imx/kernel-module-imx-gpu-viv: bump to version 6.4.3.p4.2

Gary, All,

On 2022-08-29 14:51 +0200, Gary Bisson spake thusly:

Quoted 3 lines · Yann E. MORIN
Quoted 2 lines

On 2022-08-24 12:26 -0700, Chris Dimich spake thusly:

Quoted 1 line

To match NXP 5.15.32-2.0.0 release.

[--SNIP--]

Quoted 2 lines
Quoted 2 lines

I also have some relatively minor concerns with this package (not specifically due to your change, but prompted by it):

[--SNIP--]

Quoted 9 lines
Quoted 5 lines

So, basically, we are using the commits on the master branch, but all that differs from the corresponding tag is (by running: git diff -p c897a6c..82c6cb6):
- there is an added 'fscl' (or variation thereof, like '+fscl') in 4

    locations, all appended to the version string;

'fslc' means that it is maintained by the community (fsl community) so the purpose of that tag is to show we're building from the external module source code from github/freescale (which is entirely maintained by the community).

Arf, and of course, I could not copy a 4-word acronym without making yet another typo... :-/

Quoted 3 lines
Quoted 1 line

- there are two macros that are removed (specifically by ae0f3be).

Yes this is for Yocto builds in order not to break reproducibiliy of the build/module.

Ah, but they are also nice for Buildroot, for the same reason! We also want to be able to do reproducible builds, which is the reason I suggested backporting that patch.

Quoted 10 lines
Quoted 2 lines

So, can't we use the tag instead of a sha1, and carry the patch from ae0f3be localy?

We could but this approach considers there's only that patch that matters.
In the past, the community-maintained module had more features than the driver from NXP, for instance it was supporting PREEMPT_RT when NXP didn't [1]. But I agree both branches are now very close.
I don't have any strong feelings to be honest, whatever you think is better for BR will do.

OK, so using the master branch is the best solution overall, then.

Quoted 5 lines
Quoted 2 lines

Otherwise, Chris and Gary: could you add tags on the master branch, maybe?

We could add a tag on master if needed. Would need to run it by the project maintainer (Otavio). Just let me know if you want to go that route.

Given that there is a tag for the upstream import, it would be nice to also have a tag for the community-merged result, but I can't impose that burden, now that the reason for the master branch is better explained. Thanks!

Regards,
Yann E. MORIN.

Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#12 lore raw

PATCH 4/7 package/freescale-imx/imx-gpu-viv: bump to version 6.4.3.p4.2

In reply to Chris Dimich

To match NXP 5.15.32-2.0.0 release. EULA/COPYING: update to LA_OPT_NXP_Software_License v35.

---
 package/freescale-imx/imx-gpu-viv/imx-gpu-viv.hash | 8 ++++----
 package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk   | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)
package/freescale-imx/imx-gpu-viv/imx-gpu-viv.hash +4 -4
index 312eeb6f82..b6d206d21d 100644
@@ -1,5 +1,5 @@
 # Locally calculated
-sha256  1324b1aaf190110b80ad9a6f6533f4f50dce9e9ab8d49d8503f59764b151d219  imx-gpu-viv-6.4.3.p2.0-aarch32.bin
-sha256  003c30baefb1655790b475c3cdfa5cefbf81ea89ef37c6649b64f151dd23a52e  imx-gpu-viv-6.4.3.p2.0-aarch64.bin
-sha256  ea58636bf34f589048fcd46e38497c47229fde8498df086ff5fb52f9ef8e15ee  COPYING
-sha256  50099e283cfd307f84f159aeb1a6f462351320273dbcdb80d7f2c9db0494b71c  EULA
+sha256  89197fdb13dfc21c49968297c2e8b5cb8dd5563502278151d36b2dce2a2092ed  imx-gpu-viv-6.4.3.p4.2-aarch32.bin
+sha256  52921c0b59529f1598084e991eda1863100754f28a7744ba958158dff8074b3b  imx-gpu-viv-6.4.3.p4.2-aarch64.bin
+sha256  4c89574f9a76e861919f80fef84bac30e4ba7fb8732b0fcda4b26d400239f517  COPYING
+sha256  4c89574f9a76e861919f80fef84bac30e4ba7fb8732b0fcda4b26d400239f517  EULA
package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk +2 -2
index 1d76d79e2b..b139e423eb 100644
@@ -5,9 +5,9 @@
 ################################################################################
 
 ifeq ($(BR2_aarch64),y)
-IMX_GPU_VIV_VERSION = 6.4.3.p2.0-aarch64
+IMX_GPU_VIV_VERSION = 6.4.3.p4.2-aarch64
 else
-IMX_GPU_VIV_VERSION = 6.4.3.p2.0-aarch32
+IMX_GPU_VIV_VERSION = 6.4.3.p4.2-aarch32
 endif
 IMX_GPU_VIV_SITE = $(FREESCALE_IMX_SITE)
 IMX_GPU_VIV_SOURCE = imx-gpu-viv-$(IMX_GPU_VIV_VERSION).bin
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#13 lore raw

PATCH 4/7 package/freescale-imx/imx-gpu-viv: bump to version 6.4.3.p4.2

In reply to Chris Dimich

To match NXP 5.15.32-2.0.0 release. EULA/COPYING: update to LA_OPT_NXP_Software_License v35.

---
 package/freescale-imx/imx-gpu-viv/imx-gpu-viv.hash | 8 ++++----
 package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk   | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)
package/freescale-imx/imx-gpu-viv/imx-gpu-viv.hash +4 -4
index 312eeb6f82..b6d206d21d 100644
@@ -1,5 +1,5 @@
 # Locally calculated
-sha256  1324b1aaf190110b80ad9a6f6533f4f50dce9e9ab8d49d8503f59764b151d219  imx-gpu-viv-6.4.3.p2.0-aarch32.bin
-sha256  003c30baefb1655790b475c3cdfa5cefbf81ea89ef37c6649b64f151dd23a52e  imx-gpu-viv-6.4.3.p2.0-aarch64.bin
-sha256  ea58636bf34f589048fcd46e38497c47229fde8498df086ff5fb52f9ef8e15ee  COPYING
-sha256  50099e283cfd307f84f159aeb1a6f462351320273dbcdb80d7f2c9db0494b71c  EULA
+sha256  89197fdb13dfc21c49968297c2e8b5cb8dd5563502278151d36b2dce2a2092ed  imx-gpu-viv-6.4.3.p4.2-aarch32.bin
+sha256  52921c0b59529f1598084e991eda1863100754f28a7744ba958158dff8074b3b  imx-gpu-viv-6.4.3.p4.2-aarch64.bin
+sha256  4c89574f9a76e861919f80fef84bac30e4ba7fb8732b0fcda4b26d400239f517  COPYING
+sha256  4c89574f9a76e861919f80fef84bac30e4ba7fb8732b0fcda4b26d400239f517  EULA
package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk +2 -2
index 1d76d79e2b..b139e423eb 100644
@@ -5,9 +5,9 @@
 ################################################################################
 
 ifeq ($(BR2_aarch64),y)
-IMX_GPU_VIV_VERSION = 6.4.3.p2.0-aarch64
+IMX_GPU_VIV_VERSION = 6.4.3.p4.2-aarch64
 else
-IMX_GPU_VIV_VERSION = 6.4.3.p2.0-aarch32
+IMX_GPU_VIV_VERSION = 6.4.3.p4.2-aarch32
 endif
 IMX_GPU_VIV_SITE = $(FREESCALE_IMX_SITE)
 IMX_GPU_VIV_SOURCE = imx-gpu-viv-$(IMX_GPU_VIV_VERSION).bin
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#14 lore raw

PATCH 5/7 package/freescale-imx/imx-gpu-g2d: bump version to 6.4.3.p4.2

In reply to Chris Dimich

To match NXP 5.15.32-2.0.0 release. EULA/COPYING: update to LA_OPT_NXP_Software_License v35.

---
 package/freescale-imx/imx-gpu-g2d/imx-gpu-g2d.hash | 8 ++++----
 package/freescale-imx/imx-gpu-g2d/imx-gpu-g2d.mk   | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)
package/freescale-imx/imx-gpu-g2d/imx-gpu-g2d.hash +4 -4
index 4d28b037d0..181d85a575 100644
@@ -1,5 +1,5 @@
 # Locally calculated
-sha256  39fe307916e19a0892a514621121086e276a43858af90230372a1344852116a2  imx-gpu-g2d-6.4.3.p2.0-arm.bin
-sha256  2642a49e088daae4cf568a150d01e7c095995e8a6ff1883c02c3fa6d26d254b3  imx-gpu-g2d-6.4.3.p2.0-aarch64.bin
-sha256  ea58636bf34f589048fcd46e38497c47229fde8498df086ff5fb52f9ef8e15ee  COPYING
-sha256  50099e283cfd307f84f159aeb1a6f462351320273dbcdb80d7f2c9db0494b71c  EULA
+sha256  0ba9806c4efa0154fc9f7be406e42bc2c50b975abd32cbe322cf7bcf6ae0d350  imx-gpu-g2d-6.4.3.p4.2-arm.bin
+sha256  ff50ddfee2d989798a2aba84ef9114e01f8d867293891dc0aacfab1640cbf8a3  imx-gpu-g2d-6.4.3.p4.2-aarch64.bin
+sha256  4c89574f9a76e861919f80fef84bac30e4ba7fb8732b0fcda4b26d400239f517  COPYING
+sha256  4c89574f9a76e861919f80fef84bac30e4ba7fb8732b0fcda4b26d400239f517  EULA
package/freescale-imx/imx-gpu-g2d/imx-gpu-g2d.mk +2 -2
index 0e4078a962..cb40e5940b 100644
@@ -5,9 +5,9 @@
 ################################################################################
 
 ifeq ($(BR2_aarch64),y)
-IMX_GPU_G2D_VERSION = 6.4.3.p2.0-aarch64
+IMX_GPU_G2D_VERSION = 6.4.3.p4.2-aarch64
 else
-IMX_GPU_G2D_VERSION = 6.4.3.p2.0-arm
+IMX_GPU_G2D_VERSION = 6.4.3.p4.2-arm
 endif
 IMX_GPU_G2D_SITE = $(FREESCALE_IMX_SITE)
 IMX_GPU_G2D_SOURCE = imx-gpu-g2d-$(IMX_GPU_G2D_VERSION).bin
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#15 lore raw

PATCH 5/7 package/freescale-imx/imx-gpu-g2d: bump version to 6.4.3.p4.2

In reply to Chris Dimich

To match NXP 5.15.32-2.0.0 release. EULA/COPYING: update to LA_OPT_NXP_Software_License v35.

---
 package/freescale-imx/imx-gpu-g2d/imx-gpu-g2d.hash | 8 ++++----
 package/freescale-imx/imx-gpu-g2d/imx-gpu-g2d.mk   | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)
package/freescale-imx/imx-gpu-g2d/imx-gpu-g2d.hash +4 -4
index 4d28b037d0..181d85a575 100644
@@ -1,5 +1,5 @@
 # Locally calculated
-sha256  39fe307916e19a0892a514621121086e276a43858af90230372a1344852116a2  imx-gpu-g2d-6.4.3.p2.0-arm.bin
-sha256  2642a49e088daae4cf568a150d01e7c095995e8a6ff1883c02c3fa6d26d254b3  imx-gpu-g2d-6.4.3.p2.0-aarch64.bin
-sha256  ea58636bf34f589048fcd46e38497c47229fde8498df086ff5fb52f9ef8e15ee  COPYING
-sha256  50099e283cfd307f84f159aeb1a6f462351320273dbcdb80d7f2c9db0494b71c  EULA
+sha256  0ba9806c4efa0154fc9f7be406e42bc2c50b975abd32cbe322cf7bcf6ae0d350  imx-gpu-g2d-6.4.3.p4.2-arm.bin
+sha256  ff50ddfee2d989798a2aba84ef9114e01f8d867293891dc0aacfab1640cbf8a3  imx-gpu-g2d-6.4.3.p4.2-aarch64.bin
+sha256  4c89574f9a76e861919f80fef84bac30e4ba7fb8732b0fcda4b26d400239f517  COPYING
+sha256  4c89574f9a76e861919f80fef84bac30e4ba7fb8732b0fcda4b26d400239f517  EULA
package/freescale-imx/imx-gpu-g2d/imx-gpu-g2d.mk +2 -2
index 0e4078a962..cb40e5940b 100644
@@ -5,9 +5,9 @@
 ################################################################################
 
 ifeq ($(BR2_aarch64),y)
-IMX_GPU_G2D_VERSION = 6.4.3.p2.0-aarch64
+IMX_GPU_G2D_VERSION = 6.4.3.p4.2-aarch64
 else
-IMX_GPU_G2D_VERSION = 6.4.3.p2.0-arm
+IMX_GPU_G2D_VERSION = 6.4.3.p4.2-arm
 endif
 IMX_GPU_G2D_SITE = $(FREESCALE_IMX_SITE)
 IMX_GPU_G2D_SOURCE = imx-gpu-g2d-$(IMX_GPU_G2D_VERSION).bin
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#16 lore raw

Re: [Buildroot] [PATCH 5/7] package/freescale-imx/imx-gpu-g2d: bump version to 6.4.3.p4.2

package/freescale-imx/imx-gpu-g2d/imx-gpu-g2d.hash line 5

Quoted 8 lines · On Wed, 24 Aug 2022 12:26:02 -0700 Chris Dimich…
package/freescale-imx/imx-gpu-g2d/imx-gpu-g2d.hash +4 -4
-sha256  39fe307916e19a0892a514621121086e276a43858af90230372a1344852116a2  imx-gpu-g2d-6.4.3.p2.0-arm.bin
-sha256  2642a49e088daae4cf568a150d01e7c095995e8a6ff1883c02c3fa6d26d254b3  imx-gpu-g2d-6.4.3.p2.0-aarch64.bin
-sha256  ea58636bf34f589048fcd46e38497c47229fde8498df086ff5fb52f9ef8e15ee  COPYING
-sha256  50099e283cfd307f84f159aeb1a6f462351320273dbcdb80d7f2c9db0494b71c  EULA
+sha256  0ba9806c4efa0154fc9f7be406e42bc2c50b975abd32cbe322cf7bcf6ae0d350  imx-gpu-g2d-6.4.3.p4.2-arm.bin
+sha256  ff50ddfee2d989798a2aba84ef9114e01f8d867293891dc0aacfab1640cbf8a3  imx-gpu-g2d-6.4.3.p4.2-aarch64.bin
+sha256  4c89574f9a76e861919f80fef84bac30e4ba7fb8732b0fcda4b26d400239f517  COPYING
+sha256  4c89574f9a76e861919f80fef84bac30e4ba7fb8732b0fcda4b26d400239f517  EULA

This hash seems wrong. You have the same hash for the COPYING file and the EULA file, and the EULA file hash is incorrect:

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

imx-gpu-g2d 6.4.3.p4.2-aarch64 Patching imx-gpu-g2d 6.4.3.p4.2-aarch64 Collecting legal info

ERROR: EULA has wrong sha256 hash:
ERROR: expected: 4c89574f9a76e861919f80fef84bac30e4ba7fb8732b0fcda4b26d400239f517
ERROR: got : 423c76762d50b82fedd3e15c48e436d7272a7e130f9ebb910f76489345707cf6
ERROR: Incomplete download, or man-in-the-middle (MITM) attack

Could you check this on your side, and send an updated version?

When you send an updated version, please always resend the full series, and increment the version number (using the -v option of git format-patch).

Thanks a lot!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#17 lore raw

PATCH 6/7 package/freescale-imx/imx-vpu-hantro-vc: bump version to 1.7.0

In reply to Chris Dimich

-To match NXP 5.15.32-2.0.0 release.
-EULA/COPYING: update to LA_OPT_NXP_Software_License v35.
-Add an INSTALL_STAGING_CMDS define as libraries needed by imx-vpu-hantro-daemon.

---
 .../imx-vpu-hantro-vc/imx-vpu-hantro-vc.hash             | 6 +++---
 .../freescale-imx/imx-vpu-hantro-vc/imx-vpu-hantro-vc.mk | 9 ++++++++-
 2 files changed, 11 insertions(+), 4 deletions(-)
package/freescale-imx/imx-vpu-hantro-vc/imx-vpu-hantro-vc.hash +3 -3
index aadf5b121f..df2cae6ca8 100644
@@ -1,4 +1,4 @@
 # Locally computed:
-sha256  d5efae484c4271c098286d007590d6bf40c272d4f35702ff65625f2362715ab3  imx-vpu-hantro-vc-1.4.0.bin
-sha256  ea58636bf34f589048fcd46e38497c47229fde8498df086ff5fb52f9ef8e15ee  COPYING
-sha256  50099e283cfd307f84f159aeb1a6f462351320273dbcdb80d7f2c9db0494b71c  EULA
+sha256  8af665f8e06e0e467f563e372f43583d94128f0d37f75321965bc26bd4404b2b  imx-vpu-hantro-vc-1.7.0.bin
+sha256  35188e65dbb9c7da4bbcb77c7726e835607f9f41b8b44149806ea51429ca9a31  COPYING
+sha256  35188e65dbb9c7da4bbcb77c7726e835607f9f41b8b44149806ea51429ca9a31  EULA
package/freescale-imx/imx-vpu-hantro-vc/imx-vpu-hantro-vc.mk +8 -1
index b07e116674..91f1db656e 100644
@@ -4,10 +4,11 @@
 #
 ################################################################################
 
-IMX_VPU_HANTRO_VC_VERSION = 1.4.0
+IMX_VPU_HANTRO_VC_VERSION = 1.7.0
 IMX_VPU_HANTRO_VC_SITE = $(FREESCALE_IMX_SITE)
 IMX_VPU_HANTRO_VC_SOURCE = imx-vpu-hantro-vc-$(IMX_VPU_HANTRO_VC_VERSION).bin
 IMX_VPU_HANTRO_VC_DEPENDENCIES = linux
+IMX_VPU_HANTRO_VC_INSTALL_STAGING = YES
 
 IMX_VPU_HANTRO_VC_LICENSE = NXP Semiconductor Software License Agreement
 IMX_VPU_HANTRO_VC_LICENSE_FILES = EULA COPYING
@@ -17,6 +18,12 @@ define IMX_VPU_HANTRO_VC_EXTRACT_CMDS
 	$(call FREESCALE_IMX_EXTRACT_HELPER,$(IMX_VPU_HANTRO_VC_DL_DIR)/$(IMX_VPU_HANTRO_VC_SOURCE))
 endef
 
+define IMX_VPU_HANTRO_VC_INSTALL_STAGING_CMDS
+	cp -r $(@D)/usr/include/hantro_VC8000E_enc $(STAGING_DIR)/usr/include/
+	cp $(@D)/usr/lib/libhantro_vc8000e.so $(STAGING_DIR)/usr/lib/
+	cp $(@D)/usr/lib/libhantro_vc8000e.so.1 $(STAGING_DIR)/usr/lib/
+endef
+
 define IMX_VPU_HANTRO_VC_INSTALL_TARGET_CMDS
 	$(INSTALL) -D -m 0755 $(@D)/usr/lib/libhantro_vc8000e.so $(TARGET_DIR)/usr/lib/libhantro_vc8000e.so
 	$(INSTALL) -D -m 0755 $(@D)/usr/lib/libhantro_vc8000e.so.1 $(TARGET_DIR)/usr/lib/libhantro_vc8000e.so.1
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#18 lore raw

PATCH 6/7 package/freescale-imx/imx-vpu-hantro-vc: bump version to 1.7.0

In reply to Chris Dimich

-To match NXP 5.15.32-2.0.0 release.
-EULA/COPYING: update to LA_OPT_NXP_Software_License v35.
-Add an INSTALL_STAGING_CMDS define as libraries needed by imx-vpu-hantro-daemon.

---
 .../imx-vpu-hantro-vc/imx-vpu-hantro-vc.hash             | 6 +++---
 .../freescale-imx/imx-vpu-hantro-vc/imx-vpu-hantro-vc.mk | 9 ++++++++-
 2 files changed, 11 insertions(+), 4 deletions(-)
package/freescale-imx/imx-vpu-hantro-vc/imx-vpu-hantro-vc.hash +3 -3
index aadf5b121f..df2cae6ca8 100644
@@ -1,4 +1,4 @@
 # Locally computed:
-sha256  d5efae484c4271c098286d007590d6bf40c272d4f35702ff65625f2362715ab3  imx-vpu-hantro-vc-1.4.0.bin
-sha256  ea58636bf34f589048fcd46e38497c47229fde8498df086ff5fb52f9ef8e15ee  COPYING
-sha256  50099e283cfd307f84f159aeb1a6f462351320273dbcdb80d7f2c9db0494b71c  EULA
+sha256  8af665f8e06e0e467f563e372f43583d94128f0d37f75321965bc26bd4404b2b  imx-vpu-hantro-vc-1.7.0.bin
+sha256  35188e65dbb9c7da4bbcb77c7726e835607f9f41b8b44149806ea51429ca9a31  COPYING
+sha256  35188e65dbb9c7da4bbcb77c7726e835607f9f41b8b44149806ea51429ca9a31  EULA
package/freescale-imx/imx-vpu-hantro-vc/imx-vpu-hantro-vc.mk +8 -1
index b07e116674..91f1db656e 100644
@@ -4,10 +4,11 @@
 #
 ################################################################################
 
-IMX_VPU_HANTRO_VC_VERSION = 1.4.0
+IMX_VPU_HANTRO_VC_VERSION = 1.7.0
 IMX_VPU_HANTRO_VC_SITE = $(FREESCALE_IMX_SITE)
 IMX_VPU_HANTRO_VC_SOURCE = imx-vpu-hantro-vc-$(IMX_VPU_HANTRO_VC_VERSION).bin
 IMX_VPU_HANTRO_VC_DEPENDENCIES = linux
+IMX_VPU_HANTRO_VC_INSTALL_STAGING = YES
 
 IMX_VPU_HANTRO_VC_LICENSE = NXP Semiconductor Software License Agreement
 IMX_VPU_HANTRO_VC_LICENSE_FILES = EULA COPYING
@@ -17,6 +18,12 @@ define IMX_VPU_HANTRO_VC_EXTRACT_CMDS
 	$(call FREESCALE_IMX_EXTRACT_HELPER,$(IMX_VPU_HANTRO_VC_DL_DIR)/$(IMX_VPU_HANTRO_VC_SOURCE))
 endef
 
+define IMX_VPU_HANTRO_VC_INSTALL_STAGING_CMDS
+	cp -r $(@D)/usr/include/hantro_VC8000E_enc $(STAGING_DIR)/usr/include/
+	cp $(@D)/usr/lib/libhantro_vc8000e.so $(STAGING_DIR)/usr/lib/
+	cp $(@D)/usr/lib/libhantro_vc8000e.so.1 $(STAGING_DIR)/usr/lib/
+endef
+
 define IMX_VPU_HANTRO_VC_INSTALL_TARGET_CMDS
 	$(INSTALL) -D -m 0755 $(@D)/usr/lib/libhantro_vc8000e.so $(TARGET_DIR)/usr/lib/libhantro_vc8000e.so
 	$(INSTALL) -D -m 0755 $(@D)/usr/lib/libhantro_vc8000e.so.1 $(TARGET_DIR)/usr/lib/libhantro_vc8000e.so.1
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#19 lore raw

Re: [Buildroot] [PATCH 6/7] package/freescale-imx/imx-vpu-hantro-vc: bump version to 1.7.0

Hello Chris,

Review

Quoted 3 lines · On Wed, 24 Aug 2022 12:26:03 -0700 Chris Dimich…
(quoted diff) +0 -3
-To match NXP 5.15.32-2.0.0 release.
-EULA/COPYING: update to LA_OPT_NXP_Software_License v35.
-Add an INSTALL_STAGING_CMDS define as libraries needed by imx-vpu-hantro-daemon.

Please split the version bump from the installation to staging into separate patches. These are unrelated things, so they belong into separate commits.

package/freescale-imx/imx-vpu-hantro-vc/imx-vpu-hantro-vc.hash line 4

Quoted 6 lines
package/freescale-imx/imx-vpu-hantro-vc/imx-vpu-hantro-vc.hash +3 -3
-sha256  d5efae484c4271c098286d007590d6bf40c272d4f35702ff65625f2362715ab3  imx-vpu-hantro-vc-1.4.0.bin
-sha256  ea58636bf34f589048fcd46e38497c47229fde8498df086ff5fb52f9ef8e15ee  COPYING
-sha256  50099e283cfd307f84f159aeb1a6f462351320273dbcdb80d7f2c9db0494b71c  EULA
+sha256  8af665f8e06e0e467f563e372f43583d94128f0d37f75321965bc26bd4404b2b  imx-vpu-hantro-vc-1.7.0.bin
+sha256  35188e65dbb9c7da4bbcb77c7726e835607f9f41b8b44149806ea51429ca9a31  COPYING
+sha256  35188e65dbb9c7da4bbcb77c7726e835607f9f41b8b44149806ea51429ca9a31  EULA

Here as well, the EULA hash is wrong:

Quoted 1 line
Quoted 1 line
Quoted 1 line

imx-vpu-hantro-vc 1.7.0 Collecting legal info

ERROR: EULA has wrong sha256 hash:
ERROR: expected: 35188e65dbb9c7da4bbcb77c7726e835607f9f41b8b44149806ea51429ca9a31
ERROR: got : 30f61825583b4c26d29a798ad7e4c8ef2f2f390b1e964af302d2dc40e93cb0a4
ERROR: Incomplete download, or man-in-the-middle (MITM) attack

Please make sure that "make legal-info" works in a configuration where you have this package enabled.

package/freescale-imx/imx-vpu-hantro-vc/imx-vpu-hantro-vc.mk define IMX_VPU_HANTRO_VC_EXTRACT_CMDS · line 24

Quoted 4 lines
package/freescale-imx/imx-vpu-hantro-vc/imx-vpu-hantro-vc.mk +4 -0
+define IMX_VPU_HANTRO_VC_INSTALL_STAGING_CMDS
+	cp -r $(@D)/usr/include/hantro_VC8000E_enc $(STAGING_DIR)/usr/include/
+	cp $(@D)/usr/lib/libhantro_vc8000e.so $(STAGING_DIR)/usr/lib/
+	cp $(@D)/usr/lib/libhantro_vc8000e.so.1 $(STAGING_DIR)/usr/lib/

Please use the same commands as the target installation. The INSTALL_TARGET_CMDS are using $(INSTALL) -D -m 0755, so you should do the same here.

Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#20 lore raw

PATCH 7/7 package/freescale-imx/imx-vpu-hantro-daemon: add package

In reply to Chris Dimich

i.MX Hantro V4L2 Daemon. Provides the vsidaemon, which is needed for V4L2 nodes to work.

---
 package/freescale-imx/Config.in               |  1 +
 .../imx-vpu-hantro-daemon/Config.in           | 20 +++++++++++
 .../imx-vpu-hantro-daemon.hash                |  4 +++
 .../imx-vpu-hantro-daemon.mk                  | 36 +++++++++++++++++++
 4 files changed, 61 insertions(+)
 create mode 100644 package/freescale-imx/imx-vpu-hantro-daemon/Config.in
 create mode 100644 package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.hash
 create mode 100644 package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.mk
package/freescale-imx/Config.in +1 -0
index 4a4237fb42..13d611b696 100644
@@ -115,6 +115,7 @@ source "package/freescale-imx/imx-vpuwrap/Config.in"
 source "package/freescale-imx/firmware-imx/Config.in"
 source "package/freescale-imx/imx-sc-firmware/Config.in"
 source "package/freescale-imx/imx-seco/Config.in"
+source "package/freescale-imx/imx-vpu-hantro-daemon/Config.in"
 source "package/freescale-imx/imx-vpu-hantro-vc/Config.in"
 if (BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX51 || BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX53)
 source "package/freescale-imx/gpu-amd-bin-mx51/Config.in"
package/freescale-imx/imx-vpu-hantro-daemon/Config.in new file +20 -0
new file mode 100644
index 0000000000..2ab9f97081
@@ -0,0 +1,20 @@
+comment "imx-vpu-hantro-daemon needs an i.MX-specific Linux kernel to be built"
+	depends on !BR2_LINUX_KERNEL
+
+comment "imx-vpu-hantro needs an i.MX platform with Hantro VPU"
+	depends on BR2_LINUX_KERNEL
+	depends on !BR2_PACKAGE_FREESCALE_IMX_HAS_VPU_HANTRO
+
+config BR2_PACKAGE_IMX_VPU_HANTRO_DAEMON
+	bool "imx-vpu-hantro"
+	depends on BR2_LINUX_KERNEL
+	depends on BR2_PACKAGE_FREESCALE_IMX_HAS_VPU_HANTRO
+	select BR2_PACKAGE_IMX_VPU_HANTRO
+	select BR2_PACKAGE_IMX_VPU_HANTRO_VC if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP
+	help
+	  i.MX Hantro V4L2 Daemon specific for the NXP i.MX SoC
+	  integrating a Hantro Video Processing Unit (VPU) such as the
+	  i.MX8MQ/i.MX8MM/i.MX8MP.
+
+	  This library is provided by NXP as-is and doesn't have an
+	  upstream.
package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.hash new file +4 -0
new file mode 100644
index 0000000000..811f8b21a3
@@ -0,0 +1,4 @@
+# Locally computed:
+sha256  77e25ad1e1860f0a3983f07d6beb9a04ff32763bacf26db9aefd16559e6eea9b  imx-vpu-hantro-daemon-1.1.2.tar.gz
+sha256  35188e65dbb9c7da4bbcb77c7726e835607f9f41b8b44149806ea51429ca9a31  COPYING
+sha256  35188e65dbb9c7da4bbcb77c7726e835607f9f41b8b44149806ea51429ca9a31  EULA
package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.mk new file +36 -0
new file mode 100644
index 0000000000..e9d628bef4
@@ -0,0 +1,36 @@
+################################################################################
+#
+# imx-vpu-hantro-daemon
+#
+################################################################################
+
+IMX_VPU_HANTRO_DAEMON_VERSION = 1.1.2
+IMX_VPU_HANTRO_DAEMON_SITE = $(FREESCALE_IMX_SITE)
+IMX_VPU_HANTRO_DAEMON_SOURCE = imx-vpu-hantro-daemon-$(IMX_VPU_HANTRO_DAEMON_VERSION).tar.gz
+IMX_VPU_HANTRO_DAEMON_DEPENDENCIES = linux
+IMX_VPU_HANTRO_DAEMON_DEPENDENCIES += imx-vpu-hantro
+ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP),y)
+IMX_VPU_HANTRO_DAEMON_DEPENDENCIES += imx-vpu-hantro-vc
+endif
+
+IMX_VPU_HANTRO_DAEMON_MAKE_ENV = \
+	CROSS_COMPILE="$(TARGET_CROSS)" \
+	SDKTARGETSYSROOT=$(STAGING_DIR) \
+	LINUX_KERNEL_ROOT=$(LINUX_DIR) \
+	CTRLSW_HDRPATH="$(STAGING_DIR)/usr/include" \
+	PLATFORM=$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM)
+
+IMX_VPU_HANTRO_DAEMON_LICENSE = NXP Semiconductor Software License Agreement
+IMX_VPU_HANTRO_DAEMON_LICENSE_FILES = EULA COPYING
+IMX_VPU_HANTRO_DAEMON_REDISTRIBUTE = NO
+
+define IMX_VPU_HANTRO_DAEMON_BUILD_CMDS
+	$(MAKE1) -C $(@D) $(IMX_VPU_HANTRO_DAEMON_MAKE_ENV)
+endef
+
+define IMX_VPU_HANTRO_DAEMON_INSTALL_TARGET_CMDS
+	$(IMX_VPU_HANTRO_DAEMON_MAKE_ENV) $(MAKE1) -C $(@D) \
+		DEST_DIR=$(TARGET_DIR) libdir=/usr/lib install
+endef
+
+$(eval $(generic-package))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#21 lore raw

PATCH 7/7 package/freescale-imx/imx-vpu-hantro-daemon: add package

In reply to Chris Dimich

i.MX Hantro V4L2 Daemon. Provides the vsidaemon, which is needed for V4L2 nodes to work.

---
 package/freescale-imx/Config.in               |  1 +
 .../imx-vpu-hantro-daemon/Config.in           | 20 +++++++++++
 .../imx-vpu-hantro-daemon.hash                |  4 +++
 .../imx-vpu-hantro-daemon.mk                  | 36 +++++++++++++++++++
 4 files changed, 61 insertions(+)
 create mode 100644 package/freescale-imx/imx-vpu-hantro-daemon/Config.in
 create mode 100644 package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.hash
 create mode 100644 package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.mk
package/freescale-imx/Config.in +1 -0
index 4a4237fb42..13d611b696 100644
@@ -115,6 +115,7 @@ source "package/freescale-imx/imx-vpuwrap/Config.in"
 source "package/freescale-imx/firmware-imx/Config.in"
 source "package/freescale-imx/imx-sc-firmware/Config.in"
 source "package/freescale-imx/imx-seco/Config.in"
+source "package/freescale-imx/imx-vpu-hantro-daemon/Config.in"
 source "package/freescale-imx/imx-vpu-hantro-vc/Config.in"
 if (BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX51 || BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX53)
 source "package/freescale-imx/gpu-amd-bin-mx51/Config.in"
package/freescale-imx/imx-vpu-hantro-daemon/Config.in new file +20 -0
new file mode 100644
index 0000000000..2ab9f97081
@@ -0,0 +1,20 @@
+comment "imx-vpu-hantro-daemon needs an i.MX-specific Linux kernel to be built"
+	depends on !BR2_LINUX_KERNEL
+
+comment "imx-vpu-hantro needs an i.MX platform with Hantro VPU"
+	depends on BR2_LINUX_KERNEL
+	depends on !BR2_PACKAGE_FREESCALE_IMX_HAS_VPU_HANTRO
+
+config BR2_PACKAGE_IMX_VPU_HANTRO_DAEMON
+	bool "imx-vpu-hantro"
+	depends on BR2_LINUX_KERNEL
+	depends on BR2_PACKAGE_FREESCALE_IMX_HAS_VPU_HANTRO
+	select BR2_PACKAGE_IMX_VPU_HANTRO
+	select BR2_PACKAGE_IMX_VPU_HANTRO_VC if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP
+	help
+	  i.MX Hantro V4L2 Daemon specific for the NXP i.MX SoC
+	  integrating a Hantro Video Processing Unit (VPU) such as the
+	  i.MX8MQ/i.MX8MM/i.MX8MP.
+
+	  This library is provided by NXP as-is and doesn't have an
+	  upstream.
package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.hash new file +4 -0
new file mode 100644
index 0000000000..811f8b21a3
@@ -0,0 +1,4 @@
+# Locally computed:
+sha256  77e25ad1e1860f0a3983f07d6beb9a04ff32763bacf26db9aefd16559e6eea9b  imx-vpu-hantro-daemon-1.1.2.tar.gz
+sha256  35188e65dbb9c7da4bbcb77c7726e835607f9f41b8b44149806ea51429ca9a31  COPYING
+sha256  35188e65dbb9c7da4bbcb77c7726e835607f9f41b8b44149806ea51429ca9a31  EULA
package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.mk new file +36 -0
new file mode 100644
index 0000000000..e9d628bef4
@@ -0,0 +1,36 @@
+################################################################################
+#
+# imx-vpu-hantro-daemon
+#
+################################################################################
+
+IMX_VPU_HANTRO_DAEMON_VERSION = 1.1.2
+IMX_VPU_HANTRO_DAEMON_SITE = $(FREESCALE_IMX_SITE)
+IMX_VPU_HANTRO_DAEMON_SOURCE = imx-vpu-hantro-daemon-$(IMX_VPU_HANTRO_DAEMON_VERSION).tar.gz
+IMX_VPU_HANTRO_DAEMON_DEPENDENCIES = linux
+IMX_VPU_HANTRO_DAEMON_DEPENDENCIES += imx-vpu-hantro
+ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP),y)
+IMX_VPU_HANTRO_DAEMON_DEPENDENCIES += imx-vpu-hantro-vc
+endif
+
+IMX_VPU_HANTRO_DAEMON_MAKE_ENV = \
+	CROSS_COMPILE="$(TARGET_CROSS)" \
+	SDKTARGETSYSROOT=$(STAGING_DIR) \
+	LINUX_KERNEL_ROOT=$(LINUX_DIR) \
+	CTRLSW_HDRPATH="$(STAGING_DIR)/usr/include" \
+	PLATFORM=$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM)
+
+IMX_VPU_HANTRO_DAEMON_LICENSE = NXP Semiconductor Software License Agreement
+IMX_VPU_HANTRO_DAEMON_LICENSE_FILES = EULA COPYING
+IMX_VPU_HANTRO_DAEMON_REDISTRIBUTE = NO
+
+define IMX_VPU_HANTRO_DAEMON_BUILD_CMDS
+	$(MAKE1) -C $(@D) $(IMX_VPU_HANTRO_DAEMON_MAKE_ENV)
+endef
+
+define IMX_VPU_HANTRO_DAEMON_INSTALL_TARGET_CMDS
+	$(IMX_VPU_HANTRO_DAEMON_MAKE_ENV) $(MAKE1) -C $(@D) \
+		DEST_DIR=$(TARGET_DIR) libdir=/usr/lib install
+endef
+
+$(eval $(generic-package))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#22 lore raw

Re: [Buildroot] [PATCH 7/7] package/freescale-imx/imx-vpu-hantro-daemon: add package

Hello Chris,

The commit title should be:

package/freescale-imx/imx-vpu-hantro-daemon: new package

Quoted 5 lines · On Wed, 24 Aug 2022 12:26:04 -0700 Chris Dimich…
 package/freescale-imx/Config.in               |  1 +
 .../imx-vpu-hantro-daemon/Config.in           | 20 +++++++++++
 .../imx-vpu-hantro-daemon.hash                |  4 +++
 .../imx-vpu-hantro-daemon.mk                  | 36 +++++++++++++++++++
 4 files changed, 61 insertions(+)

You also need to change the DEVELOPERS file, to add an entry for this new package.

package/freescale-imx/Config.in source "package/freescale-imx/imx-vpuwrap/Config.in" · line 119

Quoted 10 lines
package/freescale-imx/Config.in +1 -0
index 4a4237fb42..13d611b696 100644
@@ -115,6 +115,7 @@ source "package/freescale-imx/imx-vpuwrap/Config.in"
 source "package/freescale-imx/firmware-imx/Config.in"
 source "package/freescale-imx/imx-sc-firmware/Config.in"
 source "package/freescale-imx/imx-seco/Config.in"
+source "package/freescale-imx/imx-vpu-hantro-daemon/Config.in"
 source "package/freescale-imx/imx-vpu-hantro-vc/Config.in"

Hm, the alphabetic ordering in this file is not great, but oh well, not your fault.

package/freescale-imx/imx-vpu-hantro-daemon/Config.in line 2

Quoted 8 lines
package/freescale-imx/imx-vpu-hantro-daemon/Config.in new file +2 -0
new file mode 100644
index 0000000000..2ab9f97081
@@ -0,0 +1,20 @@
+comment "imx-vpu-hantro-daemon needs an i.MX-specific Linux kernel to be built"
+	depends on !BR2_LINUX_KERNEL

I think this would need a:

depends on BR2_PACKAGE_FREESCALE_IMX_HAS_VPU_HANTRO

package/freescale-imx/imx-vpu-hantro-daemon/Config.in line 6

Quoted 3 lines
package/freescale-imx/imx-vpu-hantro-daemon/Config.in new file +3 -0
+comment "imx-vpu-hantro needs an i.MX platform with Hantro VPU"
+	depends on BR2_LINUX_KERNEL
+	depends on !BR2_PACKAGE_FREESCALE_IMX_HAS_VPU_HANTRO

I know some other packages have that, but does that really make sense?

package/freescale-imx/imx-vpu-hantro-daemon/Config.in line 19

Quoted 12 lines
package/freescale-imx/imx-vpu-hantro-daemon/Config.in new file +12 -0
+config BR2_PACKAGE_IMX_VPU_HANTRO_DAEMON
+	bool "imx-vpu-hantro"
+	depends on BR2_LINUX_KERNEL
+	depends on BR2_PACKAGE_FREESCALE_IMX_HAS_VPU_HANTRO
+	select BR2_PACKAGE_IMX_VPU_HANTRO
+	select BR2_PACKAGE_IMX_VPU_HANTRO_VC if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP
+	help
+	  i.MX Hantro V4L2 Daemon specific for the NXP i.MX SoC
+	  integrating a Hantro Video Processing Unit (VPU) such as the
+	  i.MX8MQ/i.MX8MM/i.MX8MP.
+
+	  This library is provided by NXP as-is and doesn't have an

This package does not provide a library.

package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.hash line 4

Quoted 11 lines
package/freescale-imx/imx-vpu-hantro-daemon/Config.in new file +1 -0
+	  upstream.
package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.hash new file +4 -0
new file mode 100644
index 0000000000..811f8b21a3
@@ -0,0 +1,4 @@
+# Locally computed:
+sha256  77e25ad1e1860f0a3983f07d6beb9a04ff32763bacf26db9aefd16559e6eea9b  imx-vpu-hantro-daemon-1.1.2.tar.gz
+sha256  35188e65dbb9c7da4bbcb77c7726e835607f9f41b8b44149806ea51429ca9a31  COPYING
+sha256  35188e65dbb9c7da4bbcb77c7726e835607f9f41b8b44149806ea51429ca9a31  EULA

I'm pretty sure the hash of the EULA file is going to be wrong (though I haven't tested it), because it's exactly the same as the COPYING file, which looks suspicious.

Quoted 7 lines
package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.mk new file +1 -0
new file mode 100644
index 0000000000..e9d628bef4
@@ -0,0 +1,36 @@
+################################################################################

package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.mk line 11

Quoted 10 lines
package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.mk new file +10 -0
+#
+# imx-vpu-hantro-daemon
+#
+################################################################################
+
+IMX_VPU_HANTRO_DAEMON_VERSION = 1.1.2
+IMX_VPU_HANTRO_DAEMON_SITE = $(FREESCALE_IMX_SITE)
+IMX_VPU_HANTRO_DAEMON_SOURCE = imx-vpu-hantro-daemon-$(IMX_VPU_HANTRO_DAEMON_VERSION).tar.gz
+IMX_VPU_HANTRO_DAEMON_DEPENDENCIES = linux
+IMX_VPU_HANTRO_DAEMON_DEPENDENCIES += imx-vpu-hantro

Just one line:

IMX_VPU_HANTRO_DAEMON_DEPENDENCIES = imx-vpu-hantro linux

Quoted 4 lines
package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.mk new file +4 -0
+ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP),y)
+IMX_VPU_HANTRO_DAEMON_DEPENDENCIES += imx-vpu-hantro-vc
+endif
+

package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.mk line 25

Quoted 10 lines
package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.mk new file +10 -0
+IMX_VPU_HANTRO_DAEMON_MAKE_ENV = \
+	CROSS_COMPILE="$(TARGET_CROSS)" \
+	SDKTARGETSYSROOT=$(STAGING_DIR) \
+	LINUX_KERNEL_ROOT=$(LINUX_DIR) \
+	CTRLSW_HDRPATH="$(STAGING_DIR)/usr/include" \
+	PLATFORM=$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM)
+
+IMX_VPU_HANTRO_DAEMON_LICENSE = NXP Semiconductor Software License Agreement
+IMX_VPU_HANTRO_DAEMON_LICENSE_FILES = EULA COPYING
+IMX_VPU_HANTRO_DAEMON_REDISTRIBUTE = NO

These 3 lignes should go earlier, probably before the _DEPENDENCIES variable.

package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.mk line 34

Quoted 8 lines
package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.mk new file +8 -0
+define IMX_VPU_HANTRO_DAEMON_BUILD_CMDS
+	$(MAKE1) -C $(@D) $(IMX_VPU_HANTRO_DAEMON_MAKE_ENV)
+endef
+
+define IMX_VPU_HANTRO_DAEMON_INSTALL_TARGET_CMDS
+	$(IMX_VPU_HANTRO_DAEMON_MAKE_ENV) $(MAKE1) -C $(@D) \
+		DEST_DIR=$(TARGET_DIR) libdir=/usr/lib install
+endef

Use $(TARGET_MAKE_ENV). Also, do you use $(MAKE1) because you identified a parallel build issue?

Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot