]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Move branding information to config/branding.h
authorMichael Brown <mcb30@ipxe.org>
Wed, 11 Feb 2015 12:51:58 +0000 (12:51 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 11 Feb 2015 12:51:58 +0000 (12:51 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/prefix/romprefix.S
src/config/branding.h [new file with mode: 0644]
src/config/general.h
src/core/version.c
src/usr/autoboot.c

index 7bc4fe8cdc66aa2ad7c55c464ee33ce514b0513c..03ab8c78b1da07ab9cd4ae74741a167700d67f10 100644 (file)
@@ -9,6 +9,7 @@
 FILE_LICENCE ( GPL2_OR_LATER )
 
 #include <config/general.h>
+#include <config/branding.h>
 
 #define PNP_SIGNATURE ( '$' + ( 'P' << 8 ) + ( 'n' << 16 ) + ( 'P' << 24 ) )
 #define PMM_SIGNATURE ( '$' + ( 'P' << 8 ) + ( 'M' << 16 ) + ( 'M' << 24 ) )
@@ -573,7 +574,7 @@ get_pmm_decompress_to:
  * Note to hardware vendors:
  *
  * If you wish to brand this boot ROM, please do so by defining the
- * strings PRODUCT_NAME and PRODUCT_SHORT_NAME in config/general.h.
+ * strings PRODUCT_NAME and PRODUCT_SHORT_NAME in config/branding.h.
  *
  * While nothing in the GPL prevents you from removing all references
  * to iPXE or http://ipxe.org, we prefer you not to do so.
diff --git a/src/config/branding.h b/src/config/branding.h
new file mode 100644 (file)
index 0000000..e96d8ca
--- /dev/null
@@ -0,0 +1,32 @@
+#ifndef CONFIG_BRANDING_H
+#define CONFIG_BRANDING_H
+
+/** @file
+ *
+ * Branding configuration
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+#include <config/defaults.h>
+
+/*
+ * Branding
+ *
+ * Vendors may use these strings to add their own branding to iPXE.
+ * PRODUCT_NAME is displayed prior to any iPXE branding in startup
+ * messages, and PRODUCT_SHORT_NAME is used where a brief product
+ * label is required (e.g. in BIOS boot selection menus).
+ *
+ * To minimise end-user confusion, it's probably a good idea to either
+ * make PRODUCT_SHORT_NAME a substring of PRODUCT_NAME or leave it as
+ * "iPXE".
+ *
+ */
+#define PRODUCT_NAME ""
+#define PRODUCT_SHORT_NAME "iPXE"
+
+#include <config/local/branding.h>
+
+#endif /* CONFIG_BRANDING_H */
index 5392034577a5033e14d7cf192e74d7e7f52082ae..8ea10c4b784b50d40d500765a8eb07f8ca67c0f0 100644 (file)
@@ -11,22 +11,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
 
 #include <config/defaults.h>
 
-/*
- * Branding
- *
- * Vendors may use these strings to add their own branding to iPXE.
- * PRODUCT_NAME is displayed prior to any iPXE branding in startup
- * messages, and PRODUCT_SHORT_NAME is used where a brief product
- * label is required (e.g. in BIOS boot selection menus).
- *
- * To minimise end-user confusion, it's probably a good idea to either
- * make PRODUCT_SHORT_NAME a substring of PRODUCT_NAME or leave it as
- * "iPXE".
- *
- */
-#define PRODUCT_NAME ""
-#define PRODUCT_SHORT_NAME "iPXE"
-
 /*
  * Banner timeout configuration
  *
index 1e1e9daca3f29bdc951428b37f672a9181ca701c..87048e5dcf18874966f94125fbf9ac36eacb0ddc 100644 (file)
@@ -29,6 +29,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
 #include <ipxe/features.h>
 #include <ipxe/version.h>
 #include <config/general.h>
+#include <config/branding.h>
 
 /**
  * Create wide-character version of string
index 4aba593e9898b8fbdd2802ad70958f62c56081ca..2e52c87b9fcbbacad18aaf1c6c0768f4b5b8bfd4 100644 (file)
@@ -542,7 +542,7 @@ void ipxe ( struct net_device *netdev ) {
         *
         *
         * If you wish to brand this build of iPXE, please do so by
-        * defining the string PRODUCT_NAME in config/general.h.
+        * defining the string PRODUCT_NAME in config/branding.h.
         *
         * While nothing in the GPL prevents you from removing all
         * references to iPXE or http://ipxe.org, we prefer you not to