build: clean up postinst scripts after build
OpenWrt does this by default to save some space.
This commit is contained in:
		
							parent
							
								
									f9072a3641
								
							
						
					
					
						commit
						3f8672afb8
					
				
							
								
								
									
										1
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								Makefile
									
									
									
									
									
								
							@ -415,6 +415,7 @@ package_install: FORCE
 | 
				
			|||||||
	+$(GLUONMAKE) enable_initscripts
 | 
						+$(GLUONMAKE) enable_initscripts
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	rm -f $(TARGET_DIR)/usr/lib/opkg/lists/* $(TARGET_DIR)/tmp/opkg.lock
 | 
						rm -f $(TARGET_DIR)/usr/lib/opkg/lists/* $(TARGET_DIR)/tmp/opkg.lock
 | 
				
			||||||
 | 
						rm -f $(TARGET_DIR)/usr/lib/opkg/info/*.postinst*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Remove opkg database when opkg is not intalled
 | 
					# Remove opkg database when opkg is not intalled
 | 
				
			||||||
	if [ ! -x $(TARGET_DIR)/bin/opkg ]; then rm -rf $(TARGET_DIR)/usr/lib/opkg; fi
 | 
						if [ ! -x $(TARGET_DIR)/bin/opkg ]; then rm -rf $(TARGET_DIR)/usr/lib/opkg; fi
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user