Allow named configurations to be specified via the CONFIG=... build parameter. For headers in config/*.h which support named configurations, the following files will be included when building with CONFIG=<name>: - config/defaults/<platform>.h (e.g. config/defaults/pcbios.h) - config/<header>.h - config/<name>/<header>.h (only if the directory config/<name> exists) - config/local/<header>.h (autocreated if necessary) - config/local/<name>/<header>.h (autocreated if necessary) This mechanism allows for predefined named configurations to be checked in to the source tree, as a directory config/<name> containing all of the required header files. The mechanism also allows for users to define multiple local configurations, by creating header files in the directory config/local/<name>. Note that the config/*.h files which are used only to configure internal iPXE APIs (e.g. config/ioapi.h) cannot be modified via a named configuration. This avoids rebuilding the entire iPXE codebase whenever switching to a different named configuration. Inspired-by: Robin Smidsrød <robin@smidsrod.no> Tested-by: Robin Smidsrød <robin@smidsrod.no> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
 Michael Brown
						
						11 years ago
							Michael Brown
						
						11 years ago
					|  | ||
| 689 | 689 |  | 
| 690 | 690 |  | 
| 691 | 691 |  | 
| 692 |  | |
| 693 |  | |
| 694 |  | |
| 695 |  | |
| 696 |  | |
| 697 |  | |
| 698 |  | |
| 699 |  | |
| 700 |  | |
| 701 |  | |
| 702 |  | |
| 703 |  | |
| 704 |  | |
| 705 |  | |
| 706 |  | |
| 707 |  | |
| 708 |  | |
| 709 |  | |
| 710 |  | |
| 711 |  | |
| 712 |  | |
| 713 |  | |
| 714 |  | |
| 715 |  | |
| 716 |  | |
| 717 |  | |
| 718 |  | |
| 719 |  | |
| 692 | 720 |  | 
| 693 | 721 |  | 
| 694 | 722 |  | 
|  | ||
| 1260 | 1288 |  | 
| 1261 | 1289 |  | 
| 1262 | 1290 |  | 
| 1263 |  | |
| 1264 |  | |
| 1291 |  | |
| 1292 |  | |
| 1293 |  | |
| 1294 |  | |
| 1295 |  | |
| 1296 |  | |
| 1297 |  | |
| 1298 |  | |
| 1299 |  | |
| 1300 |  | |
| 1265 | 1301 |  | 
| 1266 | 1302 |  | 
| 1267 | 1303 |  | 
|  | ||
| 30 | 30 |  | 
| 31 | 31 |  | 
| 32 | 32 |  | 
| 33 |  | |
| 34 |  | |
| 33 | 35 |  | 
| 36 |  | |
| 34 | 37 |  | 
| 35 | 38 |  | 
|  | ||
| 28 | 28 |  | 
| 29 | 29 |  | 
| 30 | 30 |  | 
| 31 |  | |
| 32 |  | |
| 31 | 33 |  | 
| 34 |  | |
| 32 | 35 |  | 
| 33 | 36 |  | 
|  | ||
| 17 | 17 |  | 
| 18 | 18 |  | 
| 19 | 19 |  | 
| 20 |  | |
| 21 |  | |
| 20 | 22 |  | 
| 23 |  | |
| 21 | 24 |  | 
| 22 | 25 |  | 
|  | ||
| 182 | 182 |  | 
| 183 | 183 |  | 
| 184 | 184 |  | 
| 185 |  | |
| 186 |  | |
| 185 | 187 |  | 
| 188 |  | |
| 186 | 189 |  | 
| 187 | 190 |  | 
|  | ||
| 1 |  | |
| 2 |  | |
| 3 |  | |
| 4 |  | |
| 5 |  | |
| 6 |  | |
| 7 |  | |
| 8 |  | |
| 9 |  | |
| 10 |  | |
| 11 |  | |
| 12 |  | |
| 13 |  | |
| 14 |  | |
| 15 |  | |
| 16 |  | |
| 17 |  | |
| 18 |  | |
| 19 |  | |
| 20 |  | |
| 21 |  | |
| 22 |  | |
| 23 |  | |
| 24 |  | |
| 25 |  | |
| 26 |  | |
|  | ||
| 32 | 32 |  | 
| 33 | 33 |  | 
| 34 | 34 |  | 
| 35 |  | |
| 36 |  | |
| 35 | 37 |  | 
| 38 |  | |
| 36 | 39 |  | 
| 37 | 40 |  | 
|  | ||
| 14 | 14 |  | 
| 15 | 15 |  | 
| 16 | 16 |  | 
| 17 |  | |
| 18 |  | |
| 17 | 19 |  | 
| 20 |  | |
| 18 | 21 |  | 
| 19 | 22 |  | 
|  | ||
| 11 | 11 |  | 
| 12 | 12 |  | 
| 13 | 13 |  | 
| 14 |  | |
| 15 |  | |
| 14 | 16 |  | 
| 17 |  | |
| 15 | 18 |  | 
| 16 | 19 |  |