tint: Fix tint and add Kconfig option
Fix the compiler errors with tint, improves the Makefile, adds Kconfig integration and secondary payload option. Change-Id: Ia99e30f566d5ccf0d083e52bf174970535daefc5 Signed-off-by: Antonello Dettori <dettori.an@gmail.com> Reviewed-on: https://review.coreboot.org/14989 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
		
				
					committed by
					
						 Martin Roth
						Martin Roth
					
				
			
			
				
	
			
			
			
						parent
						
							bc141debb5
						
					
				
				
					commit
					4f7d329caa
				
			| @@ -106,5 +106,13 @@ config NVRAMCUI_SECONDARY_PAYLOAD | |||||||
| 	  nvramcui can be loaded as a secondary payload under SeaBIOS, GRUB, | 	  nvramcui can be loaded as a secondary payload under SeaBIOS, GRUB, | ||||||
| 	  or any other payload that can load additional payloads. | 	  or any other payload that can load additional payloads. | ||||||
|  |  | ||||||
|  | config TINT_SECONDARY_PAYLOAD | ||||||
|  | 	bool "Load tint as a secondary payload" | ||||||
|  | 	default n | ||||||
|  | 	depends on ARCH_X86 | ||||||
|  | 	help | ||||||
|  | 	  tint can be loaded as a secondary payload under SeaBIOS, GRUB, | ||||||
|  | 	  or any other payload that can load additional payloads. | ||||||
|  |  | ||||||
| endmenu # "Secondary Payloads" | endmenu # "Secondary Payloads" | ||||||
| endmenu | endmenu | ||||||
|   | |||||||
| @@ -29,7 +29,8 @@ payloads/external/depthcharge \ | |||||||
| payloads/external/SeaBIOS \ | payloads/external/SeaBIOS \ | ||||||
| payloads/external/U-Boot \ | payloads/external/U-Boot \ | ||||||
| payloads/external/Memtest86Plus \ | payloads/external/Memtest86Plus \ | ||||||
| payloads/external/iPXE | payloads/external/iPXE \ | ||||||
|  | payloads/external/tint | ||||||
|  |  | ||||||
| payloads/coreinfo/build/coreinfo.elf coreinfo: | payloads/coreinfo/build/coreinfo.elf coreinfo: | ||||||
| 	$(MAKE) -C payloads/coreinfo defaultbuild | 	$(MAKE) -C payloads/coreinfo defaultbuild | ||||||
|   | |||||||
							
								
								
									
										7
									
								
								payloads/external/Makefile.inc
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								payloads/external/Makefile.inc
									
									
									
									
										vendored
									
									
								
							| @@ -124,6 +124,9 @@ payloads/external/U-Boot/u-boot/u-boot-dtb.bin u-boot: $(top)/$(DOTCONFIG) | |||||||
| 			CONFIG_UBOOT_MASTER=$(CONFIG_UBOOT_MASTER) \ | 			CONFIG_UBOOT_MASTER=$(CONFIG_UBOOT_MASTER) \ | ||||||
| 			CONFIG_UBOOT_STABLE=$(CONFIG_UBOOT_STABLE) | 			CONFIG_UBOOT_STABLE=$(CONFIG_UBOOT_STABLE) | ||||||
|  |  | ||||||
|  | payloads/external/tint/tint/tint.elf tint: | ||||||
|  | 	$(MAKE) -C payloads/external/tint | ||||||
|  |  | ||||||
| cbfs-files-$(CONFIG_MEMTEST_SECONDARY_PAYLOAD) += img/memtest | cbfs-files-$(CONFIG_MEMTEST_SECONDARY_PAYLOAD) += img/memtest | ||||||
| img/memtest-file := payloads/external/Memtest86Plus/memtest86plus/memtest | img/memtest-file := payloads/external/Memtest86Plus/memtest86plus/memtest | ||||||
| img/memtest-type := payload | img/memtest-type := payload | ||||||
| @@ -134,6 +137,10 @@ ifeq ($(CONFIG_CONSOLE_SERIAL)$(CONFIG_DRIVERS_UART_8250IO),yy) | |||||||
| 		SERIAL_BAUD_RATE=$(CONFIG_TTYS0_BAUD) | 		SERIAL_BAUD_RATE=$(CONFIG_TTYS0_BAUD) | ||||||
| endif | endif | ||||||
|  |  | ||||||
|  | cbfs-files-$(CONFIG_TINT_SECONDARY_PAYLOAD) += img/tint | ||||||
|  | img/tint-file := payloads/external/tint/tint/tint.elf | ||||||
|  | img/tint-type := payload | ||||||
|  |  | ||||||
| payloads/external/Memtest86Plus/memtest86plus/memtest: $(top)/$(DOTCONFIG) | payloads/external/Memtest86Plus/memtest86plus/memtest: $(top)/$(DOTCONFIG) | ||||||
| 	$(MAKE) -C payloads/external/Memtest86Plus all \ | 	$(MAKE) -C payloads/external/Memtest86Plus all \ | ||||||
| 		CC="$(CC_x86_32)" \ | 		CC="$(CC_x86_32)" \ | ||||||
|   | |||||||
							
								
								
									
										33
									
								
								payloads/external/tint/Makefile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								payloads/external/tint/Makefile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,33 @@ | |||||||
|  | project_url=http://snapshot.debian.org/archive/debian-archive/20110127T084257Z/debian/pool/main/t/tint/tint_0.03b.tar.gz | ||||||
|  | archive_name=tint_0.03b.tar.gz | ||||||
|  |  | ||||||
|  | unexport KCONFIG_AUTOHEADER | ||||||
|  | unexport KCONFIG_AUTOCONFIG | ||||||
|  | unexport KCONFIG_DEPENDENCIES | ||||||
|  | unexport KCONFIG_SPLITCONFIG | ||||||
|  | unexport KCONFIG_TRISTATE | ||||||
|  | unexport KCONFIG_NEGATIVES | ||||||
|  |  | ||||||
|  | all: tint | ||||||
|  |  | ||||||
|  | tint: patch | ||||||
|  | 	echo "    MAKE       TINT     " | ||||||
|  | 	$(MAKE) -C tint | ||||||
|  |  | ||||||
|  | patch: download | ||||||
|  | 	cd tint; \ | ||||||
|  | 	if [ -e debian ]; then patch -l -p1 < ../libpayload_tint.patch; fi | ||||||
|  |  | ||||||
|  | download: | ||||||
|  | 	test -d tint || { wget $(project_url); \ | ||||||
|  | 		tar -xvf $(archive_name); \ | ||||||
|  | 		rm $(archive_name); \ | ||||||
|  | 		mv tint-0.03b tint; } | ||||||
|  |  | ||||||
|  | clean: | ||||||
|  | 	test -d tint && $(MAKE) -C tint clean || exit 0 | ||||||
|  |  | ||||||
|  | distclean: | ||||||
|  | 	rm -rf tint | ||||||
|  |  | ||||||
|  | .PHONY: download patch tint clean distclean | ||||||
							
								
								
									
										8
									
								
								payloads/external/tint/README
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								payloads/external/tint/README
									
									
									
									
										vendored
									
									
								
							| @@ -1,8 +0,0 @@ | |||||||
| ------------------------------------------------------------------------------- |  | ||||||
| tint |  | ||||||
| ------------------------------------------------------------------------------- |  | ||||||
|  |  | ||||||
| For instructions on how to download, patch, and build tint as a coreboot |  | ||||||
| payload, please see |  | ||||||
|  |  | ||||||
|   http://www.coreboot.org/Tint |  | ||||||
							
								
								
									
										925
									
								
								payloads/external/tint/libpayload_tint.patch
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										925
									
								
								payloads/external/tint/libpayload_tint.patch
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user