Skip to contentSkip to conversation

package/x264: disable CLI tool if no MMU

PATCH New Bernd Kuhls 2 participants 2 messages Aug 27, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/x264: disable CLI tool if no MMU

Fixes
http://autobuild.buildroot.net/results/837/837fd5a63d59b5c65818ec005a565cb7741a1cdd/

Inspired by
https://git.buildroot.net/buildroot/commit/?id=80b9dfceafb1d635dbb2c7f948b8b27e190e3e65

The build error can still be reproduced with a current blackfin toolchain using this defconfig:

BR2_bfin=y
BR2_bf512=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.net/toolchains/tarballs/br-bfin-full-2016.08-rc2-4-g0bca8d9.tar.bz2" BR2_TOOLCHAIN_EXTERNAL_GCC_6=y
BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_7=y
BR2_TOOLCHAIN_EXTERNAL_LOCALE=y
BR2_TOOLCHAIN_EXTERNAL_INET_RPC=y
BR2_TOOLCHAIN_EXTERNAL_CXX=y
BR2_PACKAGE_X264=y
BR2_PACKAGE_X264_CLI=y

---
 package/x264/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/x264/Config.in +1 -0
index 7bf2319..e0c308a 100644
@@ -13,6 +13,7 @@ if BR2_PACKAGE_X264
 
 config BR2_PACKAGE_X264_CLI
 	bool "CLI"
+	depends on BR2_USE_MMU # madvise()
 	help
 	  Command-line tool to encode video streams into the
 	  H.264/MPEG-4 AVC compression format.
Signature · 1 line
2.9.3
#1 lore raw

PATCH 1/1 package/x264: disable CLI tool if no MMU

Hello,

package/x264/Config.in if BR2_PACKAGE_X264 · line 16

Quoted 3 lines · Bernd Kuhls

config BR2_PACKAGE_X264_CLI

package/x264/Config.in +1 -0
 	bool "CLI"
+	depends on BR2_USE_MMU # madvise()

The main BR2_PACKAGE_X264 option already has:

config BR2_PACKAGE_X264
bool "x264"
depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX # madvise()

So perhaps this is wrong, and should be replaced by your BR2_USE_MMU dependency on just the CLI sub-option?

Thanks,

Thomas

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