[OpenWrt-Devel,PATCH-19.07] toolchain/nasm: Do not build for pentium targets
diff mbox series

Message ID 20200112044559.633608-1-rosenp@gmail.com
State New
Headers show
Series
  • [OpenWrt-Devel,PATCH-19.07] toolchain/nasm: Do not build for pentium targets
Related show

Commit Message

Rosen Penev Jan. 12, 2020, 4:45 a.m. UTC
NASM builds completely broken files with pentium targets. This causes
ffmpeg to fail compilation. Instead of working around the problem in the
ffmpeg Makefile, it's easier to just not build for broken platforms.

Not even objdump can figure out what the generated files are.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 This should only be applied to 19.07. I don't think we can change the
 toolchain there.
 toolchain/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/toolchain/Config.in b/toolchain/Config.in
index 762f4e10d7..f55e756877 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -226,7 +226,7 @@  source "toolchain/gcc/Config.in"
 
 config NASM
 	bool
-	depends on ( i386 || x86_64 )
+	depends on (x86_64 || (i386 && !(TARGET_x86_geode || TARGET_x86_legacy)))
 	prompt "Build nasm" if TOOLCHAINOPTS
 	default y
 	help