The upstream build system uses a newly introduced function `read-file`, so copy that in from Linux 6.2. TEST=`util/abuild/abuild -C` output (config.h and config.build) remains the same Change-Id: Ic100bf189ebd3eaa0eb26904ae8602910329a180 Signed-off-by: Patrick Georgi <patrick@coreboot.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/79179 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin L Roth <gaumless@gmail.com>
		
			
				
	
	
		
			29 lines
		
	
	
		
			953 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			953 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From 8512ae9b9bd83f6051f63b0673903283788a2d12 Mon Sep 17 00:00:00 2001
 | |
| From: Idwer Vollering <vidwer@gmail.com>
 | |
| Date: Wed, 28 Jul 2021 20:15:29 +0200
 | |
| Subject: [PATCH] util/kconfig: detect ncurses on FreeBSD
 | |
| 
 | |
| Signed-off-by: Idwer Vollering <vidwer@gmail.com>
 | |
| Change-Id: I4344ba2116c0b8618357db4248d993509cbb666e
 | |
| ---
 | |
|  util/kconfig/mconf-cfg.sh | 6 ++++++
 | |
|  1 file changed, 6 insertions(+)
 | |
| 
 | |
| Index: kconfig/mconf-cfg.sh
 | |
| ===================================================================
 | |
| --- kconfig.orig/mconf-cfg.sh
 | |
| +++ kconfig/mconf-cfg.sh
 | |
| @@ -36,6 +36,12 @@ if [ -f /usr/include/ncurses/ncurses.h ]
 | |
|  	exit 0
 | |
|  fi
 | |
|  
 | |
| +# We'll want to be able to build on (Free)BSD:
 | |
| +if [ -f /usr/include/ncurses.h ]; then
 | |
| +	echo libs=\"-lncurses\"
 | |
| +	exit 0
 | |
| +fi
 | |
| +
 | |
|  # As a final fallback before giving up, check if $HOSTCC knows of a default
 | |
|  # ncurses installation (e.g. from a vendor-specific sysroot).
 | |
|  if echo '#include <ncurses.h>' | ${HOSTCC} -E - >/dev/null 2>&1; then
 |