mirror of
				https://github.com/Telecominfraproject/ols-nos.git
				synced 2025-10-31 18:17:52 +00:00 
			
		
		
		
	[build] Check if patches are applied before applying patches (#13386)
Why I did it If make fails, we can't rerun the make process, because existing patches can't apply again. How I did it Check if patches are applied. if yes, don't apply patches again. How to verify it
This commit is contained in:
		
							
								
								
									
										2
									
								
								slave.mk
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								slave.mk
									
									
									
									
									
								
							| @@ -623,7 +623,7 @@ $(addprefix $(FILES_PATH)/, $(SONIC_MAKE_FILES)) : $(FILES_PATH)/% : .platform $ | |||||||
| 		# Remove target to force rebuild | 		# Remove target to force rebuild | ||||||
| 		rm -f $(addprefix $(FILES_PATH)/, $*) | 		rm -f $(addprefix $(FILES_PATH)/, $*) | ||||||
| 		# Apply series of patches if exist | 		# Apply series of patches if exist | ||||||
| 		if [ -f $($*_SRC_PATH).patch/series ]; then pushd $($*_SRC_PATH) && QUILT_PATCHES=../$(notdir $($*_SRC_PATH)).patch quilt push -a; popd; fi | 		if [ -f $($*_SRC_PATH).patch/series ]; then pushd $($*_SRC_PATH) && quilt applied || QUILT_PATCHES=../$(notdir $($*_SRC_PATH)).patch quilt push -a; popd; fi | ||||||
| 		# Build project and take package | 		# Build project and take package | ||||||
| 		make DEST=$(shell pwd)/$(FILES_PATH) -C $($*_SRC_PATH) $(shell pwd)/$(FILES_PATH)/$* $(LOG) | 		make DEST=$(shell pwd)/$(FILES_PATH) -C $($*_SRC_PATH) $(shell pwd)/$(FILES_PATH)/$* $(LOG) | ||||||
| 		# Clean up | 		# Clean up | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Liu Shilong
					Liu Shilong