mirror of
				https://github.com/Ysurac/openmptcprouter.git
				synced 2025-03-09 15:40:20 +00:00 
			
		
		
		
	Set variable for 4.19 kernel in build script, default to 4.14
This commit is contained in:
		
							parent
							
								
									87fcee545f
								
							
						
					
					
						commit
						9bf28f1c95
					
				
					 2 changed files with 15 additions and 24 deletions
				
			
		
							
								
								
									
										38
									
								
								build.sh
									
										
									
									
									
								
							
							
						
						
									
										38
									
								
								build.sh
									
										
									
									
									
								
							| 
						 | 
					@ -29,6 +29,7 @@ OMR_UEFI=${OMR_UEFI:-yes}
 | 
				
			||||||
OMR_ALL_PACKAGES=${OMR_ALL_PACKAGES:-no}
 | 
					OMR_ALL_PACKAGES=${OMR_ALL_PACKAGES:-no}
 | 
				
			||||||
OMR_TARGET=${OMR_TARGET:-x86_64}
 | 
					OMR_TARGET=${OMR_TARGET:-x86_64}
 | 
				
			||||||
OMR_TARGET_CONFIG="config-$OMR_TARGET"
 | 
					OMR_TARGET_CONFIG="config-$OMR_TARGET"
 | 
				
			||||||
 | 
					OMR_KERNEL=${OMR_KERNEL:-4.14}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
OMR_FEED_URL="${OMR_FEED_URL:-https://github.com/ysurac/openmptcprouter-feeds}"
 | 
					OMR_FEED_URL="${OMR_FEED_URL:-https://github.com/ysurac/openmptcprouter-feeds}"
 | 
				
			||||||
OMR_FEED_SRC="${OMR_FEED_SRC:-master}"
 | 
					OMR_FEED_SRC="${OMR_FEED_SRC:-master}"
 | 
				
			||||||
| 
						 | 
					@ -132,6 +133,9 @@ if [ "$OMR_IMG" = "yes" ] && [ "$OMR_TARGET" = "x86_64" ]; then
 | 
				
			||||||
	echo 'CONFIG_VDI_IMAGES=y' >> "$OMR_TARGET/source/.config"
 | 
						echo 'CONFIG_VDI_IMAGES=y' >> "$OMR_TARGET/source/.config"
 | 
				
			||||||
	echo 'CONFIG_VMDK_IMAGES=y' >> "$OMR_TARGET/source/.config"
 | 
						echo 'CONFIG_VMDK_IMAGES=y' >> "$OMR_TARGET/source/.config"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					if [ "$OMR_KERNEL" = "4.19" ]; then
 | 
				
			||||||
 | 
						echo '# CONFIG_TARGET_ROOTFS_SQUASHFS is not set' >> "$OMR_TARGET/source/.config"
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cd "$OMR_TARGET/source"
 | 
					cd "$OMR_TARGET/source"
 | 
				
			||||||
| 
						 | 
					@ -158,29 +162,17 @@ echo "Done"
 | 
				
			||||||
#fi
 | 
					#fi
 | 
				
			||||||
#echo "Done"
 | 
					#echo "Done"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if [ "$OMR_KERNEL" = "4.19" ]; then
 | 
				
			||||||
#echo "Set to kernel 4.9 for all arch"
 | 
						echo "Set to kernel 4.19 for rpi arch"
 | 
				
			||||||
#find target/linux/ -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=4.14%KERNEL_PATCHVER:=4.9%g' {} \;
 | 
						find target/linux/brcm2708 -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=4.14%KERNEL_PATCHVER:=4.19%g' {} \;
 | 
				
			||||||
#echo "Done"
 | 
						echo "Done"
 | 
				
			||||||
#echo "Set to kernel 4.14 for rpi arch"
 | 
						echo "Set to kernel 4.19 for x86 arch"
 | 
				
			||||||
#find target/linux/brcm2708 -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=4.9%KERNEL_PATCHVER:=4.14%g' {} \;
 | 
						find target/linux/x86 -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=4.14%KERNEL_PATCHVER:=4.19%g' {} \;
 | 
				
			||||||
#echo "Done"
 | 
						echo "Done"
 | 
				
			||||||
#echo "Set to kernel 4.14 for all arch"
 | 
						echo "Set to kernel 4.19 for mvebu arch (WRT)"
 | 
				
			||||||
#find target/linux/ -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=4.19%KERNEL_PATCHVER:=4.14%g' {} \;
 | 
						find target/linux/mvebu -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=4.14%KERNEL_PATCHVER:=4.19%g' {} \;
 | 
				
			||||||
#echo "Done"
 | 
						echo "Done"
 | 
				
			||||||
#echo "Remove old RPI firmware"
 | 
					fi
 | 
				
			||||||
#rm -rf target/linux/brcm2708/base-files/lib/firmware
 | 
					 | 
				
			||||||
#echo "Done"
 | 
					 | 
				
			||||||
#echo "Set to kernel 4.19 for rpi arch"
 | 
					 | 
				
			||||||
#find target/linux/brcm2708 -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=4.14%KERNEL_PATCHVER:=4.19%g' {} \;
 | 
					 | 
				
			||||||
#echo "Done"
 | 
					 | 
				
			||||||
#echo "Set to kernel 4.19 for x86 arch"
 | 
					 | 
				
			||||||
#find target/linux/x86 -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=4.14%KERNEL_PATCHVER:=4.19%g' {} \;
 | 
					 | 
				
			||||||
#echo "Done"
 | 
					 | 
				
			||||||
#echo "Set to kernel 4.19 for mvebu arch (WRT)"
 | 
					 | 
				
			||||||
#find target/linux/mvebu -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=4.14%KERNEL_PATCHVER:=4.19%g' {} \;
 | 
					 | 
				
			||||||
#echo "Done"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo "Update feeds index"
 | 
					echo "Update feeds index"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										1
									
								
								config
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								config
									
										
									
									
									
								
							| 
						 | 
					@ -174,7 +174,6 @@ CONFIG_PACKAGE_kmod-via-velocity=y
 | 
				
			||||||
CONFIG_PACKAGE_kmod-vmxnet3=y
 | 
					CONFIG_PACKAGE_kmod-vmxnet3=y
 | 
				
			||||||
CONFIG_PACKAGE_kmod-fs-vfat=y
 | 
					CONFIG_PACKAGE_kmod-fs-vfat=y
 | 
				
			||||||
CONFIG_TARGET_IMAGES_PAD=y
 | 
					CONFIG_TARGET_IMAGES_PAD=y
 | 
				
			||||||
# CONFIG_TARGET_ROOTFS_SQUASHFS is not set
 | 
					 | 
				
			||||||
CONFIG_KERNEL_TCP_CONG_CDG=y
 | 
					CONFIG_KERNEL_TCP_CONG_CDG=y
 | 
				
			||||||
CONFIG_KERNEL_TCP_CONG_HTCP=y
 | 
					CONFIG_KERNEL_TCP_CONG_HTCP=y
 | 
				
			||||||
CONFIG_KERNEL_TCP_CONG_HSTCP=y
 | 
					CONFIG_KERNEL_TCP_CONG_HSTCP=y
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue