Browse Source

[build] Move branding information to config/branding.h

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 years ago
parent
commit
1c3fb3c61a
5 changed files with 36 additions and 18 deletions
  1. 2
    1
      src/arch/i386/prefix/romprefix.S
  2. 32
    0
      src/config/branding.h
  3. 0
    16
      src/config/general.h
  4. 1
    0
      src/core/version.c
  5. 1
    1
      src/usr/autoboot.c

+ 2
- 1
src/arch/i386/prefix/romprefix.S View File

9
 FILE_LICENCE ( GPL2_OR_LATER )
9
 FILE_LICENCE ( GPL2_OR_LATER )
10
 
10
 
11
 #include <config/general.h>
11
 #include <config/general.h>
12
+#include <config/branding.h>
12
 
13
 
13
 #define PNP_SIGNATURE ( '$' + ( 'P' << 8 ) + ( 'n' << 16 ) + ( 'P' << 24 ) )
14
 #define PNP_SIGNATURE ( '$' + ( 'P' << 8 ) + ( 'n' << 16 ) + ( 'P' << 24 ) )
14
 #define PMM_SIGNATURE ( '$' + ( 'P' << 8 ) + ( 'M' << 16 ) + ( 'M' << 24 ) )
15
 #define PMM_SIGNATURE ( '$' + ( 'P' << 8 ) + ( 'M' << 16 ) + ( 'M' << 24 ) )
573
  * Note to hardware vendors:
574
  * Note to hardware vendors:
574
  *
575
  *
575
  * If you wish to brand this boot ROM, please do so by defining the
576
  * If you wish to brand this boot ROM, please do so by defining the
576
- * strings PRODUCT_NAME and PRODUCT_SHORT_NAME in config/general.h.
577
+ * strings PRODUCT_NAME and PRODUCT_SHORT_NAME in config/branding.h.
577
  *
578
  *
578
  * While nothing in the GPL prevents you from removing all references
579
  * While nothing in the GPL prevents you from removing all references
579
  * to iPXE or http://ipxe.org, we prefer you not to do so.
580
  * to iPXE or http://ipxe.org, we prefer you not to do so.

+ 32
- 0
src/config/branding.h View File

1
+#ifndef CONFIG_BRANDING_H
2
+#define CONFIG_BRANDING_H
3
+
4
+/** @file
5
+ *
6
+ * Branding configuration
7
+ *
8
+ */
9
+
10
+FILE_LICENCE ( GPL2_OR_LATER );
11
+
12
+#include <config/defaults.h>
13
+
14
+/*
15
+ * Branding
16
+ *
17
+ * Vendors may use these strings to add their own branding to iPXE.
18
+ * PRODUCT_NAME is displayed prior to any iPXE branding in startup
19
+ * messages, and PRODUCT_SHORT_NAME is used where a brief product
20
+ * label is required (e.g. in BIOS boot selection menus).
21
+ *
22
+ * To minimise end-user confusion, it's probably a good idea to either
23
+ * make PRODUCT_SHORT_NAME a substring of PRODUCT_NAME or leave it as
24
+ * "iPXE".
25
+ *
26
+ */
27
+#define PRODUCT_NAME ""
28
+#define PRODUCT_SHORT_NAME "iPXE"
29
+
30
+#include <config/local/branding.h>
31
+
32
+#endif /* CONFIG_BRANDING_H */

+ 0
- 16
src/config/general.h View File

11
 
11
 
12
 #include <config/defaults.h>
12
 #include <config/defaults.h>
13
 
13
 
14
-/*
15
- * Branding
16
- *
17
- * Vendors may use these strings to add their own branding to iPXE.
18
- * PRODUCT_NAME is displayed prior to any iPXE branding in startup
19
- * messages, and PRODUCT_SHORT_NAME is used where a brief product
20
- * label is required (e.g. in BIOS boot selection menus).
21
- *
22
- * To minimise end-user confusion, it's probably a good idea to either
23
- * make PRODUCT_SHORT_NAME a substring of PRODUCT_NAME or leave it as
24
- * "iPXE".
25
- *
26
- */
27
-#define PRODUCT_NAME ""
28
-#define PRODUCT_SHORT_NAME "iPXE"
29
-
30
 /*
14
 /*
31
  * Banner timeout configuration
15
  * Banner timeout configuration
32
  *
16
  *

+ 1
- 0
src/core/version.c View File

29
 #include <ipxe/features.h>
29
 #include <ipxe/features.h>
30
 #include <ipxe/version.h>
30
 #include <ipxe/version.h>
31
 #include <config/general.h>
31
 #include <config/general.h>
32
+#include <config/branding.h>
32
 
33
 
33
 /**
34
 /**
34
  * Create wide-character version of string
35
  * Create wide-character version of string

+ 1
- 1
src/usr/autoboot.c View File

542
 	 *
542
 	 *
543
 	 *
543
 	 *
544
 	 * If you wish to brand this build of iPXE, please do so by
544
 	 * If you wish to brand this build of iPXE, please do so by
545
-	 * defining the string PRODUCT_NAME in config/general.h.
545
+	 * defining the string PRODUCT_NAME in config/branding.h.
546
 	 *
546
 	 *
547
 	 * While nothing in the GPL prevents you from removing all
547
 	 * While nothing in the GPL prevents you from removing all
548
 	 * references to iPXE or http://ipxe.org, we prefer you not to
548
 	 * references to iPXE or http://ipxe.org, we prefer you not to

Loading…
Cancel
Save