build: introduce GLUON_AUTOREMOVE flag
(cherry picked from commit ab6596115a)
			
			
This commit is contained in:
		
							parent
							
								
									f55c965cad
								
							
						
					
					
						commit
						3e66935ab9
					
				
							
								
								
									
										3
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								Makefile
									
									
									
									
									
								
							| @ -40,10 +40,11 @@ $(eval $(call mkabspath,GLUON_TARGETSDIR)) | |||||||
| $(eval $(call mkabspath,GLUON_PATCHESDIR)) | $(eval $(call mkabspath,GLUON_PATCHESDIR)) | ||||||
| 
 | 
 | ||||||
| GLUON_MULTIDOMAIN ?= 0 | GLUON_MULTIDOMAIN ?= 0 | ||||||
|  | GLUON_AUTOREMOVE ?= 0 | ||||||
| GLUON_DEBUG ?= 0 | GLUON_DEBUG ?= 0 | ||||||
| 
 | 
 | ||||||
| export GLUON_RELEASE GLUON_REGION GLUON_MULTIDOMAIN GLUON_DEBUG GLUON_DEPRECATED GLUON_DEVICES \ | export GLUON_RELEASE GLUON_REGION GLUON_MULTIDOMAIN GLUON_DEBUG GLUON_DEPRECATED GLUON_DEVICES \ | ||||||
| 	 GLUON_TARGETSDIR GLUON_PATCHESDIR GLUON_TMPDIR GLUON_IMAGEDIR GLUON_PACKAGEDIR | 	 GLUON_TARGETSDIR GLUON_PATCHESDIR GLUON_TMPDIR GLUON_IMAGEDIR GLUON_PACKAGEDIR GLUON_AUTOREMOVE | ||||||
| 
 | 
 | ||||||
| show-release: | show-release: | ||||||
| 	@echo '$(GLUON_RELEASE)' | 	@echo '$(GLUON_RELEASE)' | ||||||
|  | |||||||
| @ -208,6 +208,12 @@ GLUON_TARGET | |||||||
| Special variables | Special variables | ||||||
| ................. | ................. | ||||||
| 
 | 
 | ||||||
|  | GLUON_AUTOREMOVE | ||||||
|  |   Setting ``GLUON_AUTOREMOVE=1`` enables the ``CONFIG_AUTOREMOVE`` OpenWrt setting, which will delete package build | ||||||
|  |   directories after a package build has finished to save space. This is mostly useful for CI builds from scratch. Do | ||||||
|  |   not set this flag during development (or generally, when you want you reuse your build tree for subsequent builds), | ||||||
|  |   as it significantly increases incremental build times. | ||||||
|  | 
 | ||||||
| GLUON_DEBUG | GLUON_DEBUG | ||||||
|   Setting ``GLUON_DEBUG=1`` will provide firmware images including debugging symbols usable with GDB or |   Setting ``GLUON_DEBUG=1`` will provide firmware images including debugging symbols usable with GDB or | ||||||
|   similar tools. Requires a device or target with at least 16 MB of flash space, e.g. `x86-64`. Unset by default. |   similar tools. Requires a device or target with at least 16 MB of flash space, e.g. `x86-64`. Unset by default. | ||||||
|  | |||||||
| @ -31,6 +31,7 @@ end | |||||||
| 
 | 
 | ||||||
| config '# CONFIG_TARGET_ROOTFS_INITRAMFS is not set' | config '# CONFIG_TARGET_ROOTFS_INITRAMFS is not set' | ||||||
| 
 | 
 | ||||||
|  | config 'CONFIG_DEVEL=y' | ||||||
| config 'CONFIG_ALL_NONSHARED=y' | config 'CONFIG_ALL_NONSHARED=y' | ||||||
| 
 | 
 | ||||||
| config '# CONFIG_PACKAGE_usbip is not set' -- fails to build | config '# CONFIG_PACKAGE_usbip is not set' -- fails to build | ||||||
| @ -53,6 +54,10 @@ if envtrue.GLUON_MULTIDOMAIN then | |||||||
| 	config 'CONFIG_GLUON_MULTIDOMAIN=y' | 	config 'CONFIG_GLUON_MULTIDOMAIN=y' | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
|  | if envtrue.GLUON_AUTOREMOVE then | ||||||
|  | 	config 'CONFIG_AUTOREMOVE=y' | ||||||
|  | end | ||||||
|  | 
 | ||||||
| if envtrue.GLUON_DEBUG then | if envtrue.GLUON_DEBUG then | ||||||
| 	config 'CONFIG_DEBUG=y' | 	config 'CONFIG_DEBUG=y' | ||||||
| 	config 'CONFIG_NO_STRIP=y' | 	config 'CONFIG_NO_STRIP=y' | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user