Selaa lähdekoodia

Copy iPXE overrides into source directory during build

Allows for customization of upsteam.  Also added comments
to prep file
Antony Messerli 9 vuotta sitten
vanhempi
commit
621e18e4f3
2 muutettua tiedostoa jossa 48 lisäystä ja 0 poistoa
  1. 38 0
      ipxe/local/colour.h
  2. 10 0
      script/prep-release.sh

+ 38 - 0
ipxe/local/colour.h

@@ -0,0 +1,38 @@
+#ifndef CONFIG_COLOUR_H
+#define CONFIG_COLOUR_H
+
+/** @file
+ *
+ * Display colour configuration
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
+
+#define COLOR_NORMAL_FG		COLOR_CYAN
+#define COLOR_NORMAL_BG		COLOR_BLACK
+
+#define COLOR_SELECT_FG		COLOR_WHITE
+#define COLOR_SELECT_BG		COLOR_BLUE
+
+#define COLOR_SEPARATOR_FG	COLOR_WHITE
+#define COLOR_SEPARATOR_BG	COLOR_BLACK
+
+#define COLOR_EDIT_FG		COLOR_BLACK
+#define COLOR_EDIT_BG		COLOR_CYAN
+
+#define COLOR_ALERT_FG		COLOR_WHITE
+#define COLOR_ALERT_BG		COLOR_RED
+
+#define COLOR_URL_FG		COLOR_CYAN
+#define COLOR_URL_BG		COLOR_BLUE
+
+#define COLOR_PXE_FG		COLOR_BLACK
+#define COLOR_PXE_BG		COLOR_WHITE
+
+#include <config/named.h>
+#include NAMED_CONFIG(colour.h)
+#include <config/local/colour.h>
+#include LOCAL_NAMED_CONFIG(colour.h)
+
+#endif /* CONFIG_COLOUR_H */

+ 10 - 0
script/prep-release.sh

@@ -1,8 +1,16 @@
 #!/bin/bash
 # prep release for upload to production container
 
+# make ipxe directory to store ipxe disks
 mkdir -p build/ipxe
+
+# pull down upstream iPXE
 git clone --depth 1 https://github.com/ipxe/ipxe.git ipxe_build
+
+# copy iPXE config overrides into source tree
+cp ipxe/local/* ipxe_build/src/config/local/
+
+# build iPXE disks
 cd ipxe_build/src
 for ipxe_config in `ls ../../ipxe/`
 do 
@@ -14,4 +22,6 @@ do
   mv bin/undionly.kpxe ../../build/ipxe/$ipxe_config-undionly.kpxe
 done
 cd ../..
+
+# copy iPXE src code into build directory
 cp -R src/* build/