build: make the touch .autoremove call non-fatal
Fixes build issues when there is nothing to do on the compile step (e.g. with unselected packages). Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
		@@ -216,7 +216,7 @@ define Build/CoreTargets
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  ifneq ($(CONFIG_AUTOREMOVE),)
 | 
					  ifneq ($(CONFIG_AUTOREMOVE),)
 | 
				
			||||||
    compile:
 | 
					    compile:
 | 
				
			||||||
		touch $(PKG_BUILD_DIR)/.autoremove
 | 
							-touch $(PKG_BUILD_DIR)/.autoremove 2>/dev/null >/dev/null
 | 
				
			||||||
		$(FIND) $(PKG_BUILD_DIR) -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' | \
 | 
							$(FIND) $(PKG_BUILD_DIR) -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' | \
 | 
				
			||||||
			$(XARGS) rm -rf
 | 
								$(XARGS) rm -rf
 | 
				
			||||||
  endif
 | 
					  endif
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user