forked from Bananymous/banan-os
				
			ports: Add support for downloading upstream config.sub
banan-os is now in the upstream config.sub. This means no more config.sub patches!
This commit is contained in:
		
							parent
							
								
									1e65f02ff7
								
							
						
					
					
						commit
						6971f76bd3
					
				|  | @ -49,10 +49,26 @@ fi | ||||||
| MAKE_BUILD_TARGETS=('all') | MAKE_BUILD_TARGETS=('all') | ||||||
| MAKE_INSTALL_TARGETS=('install') | MAKE_INSTALL_TARGETS=('install') | ||||||
| 
 | 
 | ||||||
|  | CONFIG_SUB=() | ||||||
|  | 
 | ||||||
| clean() { | clean() { | ||||||
| 	find . -mindepth 1 -maxdepth 1 -not -name 'patches' -not -name 'build.sh' -exec rm -rf {} + | 	find . -mindepth 1 -maxdepth 1 -not -name 'patches' -not -name 'build.sh' -exec rm -rf {} + | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | config_sub_update() { | ||||||
|  | 	[ ${#CONFIG_SUB[@]} -eq 0 ] && return | ||||||
|  | 
 | ||||||
|  | 	config_sub_path="$BANAN_PORT_DIR/config.sub" | ||||||
|  | 
 | ||||||
|  | 	if [ $(find $config_sub_path -mtime +1) ]; then | ||||||
|  | 		wget -O "$config_sub_path" 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' | ||||||
|  | 	fi | ||||||
|  | 
 | ||||||
|  | 	for target in "${CONFIG_SUB[@]}"; do | ||||||
|  | 		cp "$config_sub_path" "$target" | ||||||
|  | 	done | ||||||
|  | } | ||||||
|  | 
 | ||||||
| pre_configure() { | pre_configure() { | ||||||
| 	: | 	: | ||||||
| } | } | ||||||
|  | @ -202,6 +218,7 @@ fi | ||||||
| cd "$build_dir" | cd "$build_dir" | ||||||
| 
 | 
 | ||||||
| if (( $needs_compile )); then | if (( $needs_compile )); then | ||||||
|  | 	config_sub_update | ||||||
| 	configure | 	configure | ||||||
| 	build | 	build | ||||||
| 	sha256sum "$BANAN_SYSROOT/usr/lib/libc.a" > "../.compile_hash" | 	sha256sum "$BANAN_SYSROOT/usr/lib/libc.a" > "../.compile_hash" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue