Skip to content

Commit

Permalink
config: adding customization via local config
Browse files Browse the repository at this point in the history
  • Loading branch information
maxux committed Dec 11, 2024
1 parent 18e7674 commit b6605d0
Show file tree
Hide file tree
Showing 21 changed files with 84 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/config/local/branding.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#undef PRODUCT_SHORT_NAME
#define PRODUCT_SHORT_NAME "Zero-OS Network Driver"

#undef PRODUCT_URI
#define PRODUCT_URI "https://bootstrap.grid.tf"
Empty file added src/config/local/colour.h
Empty file.
12 changes: 12 additions & 0 deletions src/config/local/console.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* Increase log level on screen console */
// #undef LOG_LEVEL
// #define LOG_LEVEL LOG_ALL

#undef CONSOLE_PCBIOS
#define CONSOLE_PCBIOS CONSOLE_USAGE_ALL

#undef CONSOLE_EFI
#define CONSOLE_EFI CONSOLE_USAGE_ALL

/* Enable Serial Console port (useful with IPMI, etc. with console redirection) */
#define CONSOLE_SERIAL
Empty file added src/config/local/crypto.h
Empty file.
Empty file added src/config/local/dhcp.h
Empty file.
Empty file added src/config/local/entropy.h
Empty file.
Empty file added src/config/local/fault.h
Empty file.
Empty file added src/config/local/fdt.h
Empty file.
58 changes: 58 additions & 0 deletions src/config/local/general.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/*
* These settings are relevant only with our
* autoboot script. This release is intended to be used
* only with the Zero OS Bootstrap boot script and nothing else,
* thus, we can disable all commands and protocols not used
* by that script.
*/

/* For now, we only support IPv4 bootstrapping */
#undef NET_PROTO_IPV6 /* IPv6 protocol */

/* Disable protocols we don't use */
#undef NET_PROTO_FCOE /* Fibre Channel over Ethernet protocol */
#undef NET_PROTO_EAPOL /* EAP over LAN protocol */

/* Enable HTTPS protocol which is the only one we really use */
#define DOWNLOAD_PROTO_HTTPS

/* Disable SAN boot protocols */
#undef SANBOOT_PROTO_ISCSI /* iSCSI protocol */
#undef SANBOOT_PROTO_AOE /* AoE protocol */
#undef SANBOOT_PROTO_IB_SRP /* Infiniband SCSI RDMA protocol */
#undef SANBOOT_PROTO_FCP /* Fibre Channel protocol */
#undef SANBOOT_PROTO_HTTP /* HTTP SAN protocol */

/* Disable Wireless encryption, we don't support wireless devices */
#undef CRYPTO_80211_WEP
#undef CRYPTO_80211_WPA
#undef CRYPTO_80211_WPA2
#undef EAP_METHOD_MD5

/* Disable Etherboot Images support */
#undef IMAGE_PNG
#undef IMAGE_DER
#undef IMAGE_PEM

/* Disable commands we don't need */
#undef IWMGMT_CMD /* Wireless interface management commands */
#undef IBMGMT_CMD /* Infiniband management commands */
#undef FCMGMT_CMD /* Fibre Channel management commands */
#undef SANBOOT_CMD /* SAN boot commands */
//#undef MENU_CMD
#undef FORM_CMD
#undef LOGIN_CMD
#undef SYNC_CMD
#undef IMAGE_ARCHIVE_CMD /* Archive image management commands */
#undef SHIM_CMD /* EFI shim command (or dummy command) */

/* Enable extra commands not enabled by default */
/* We mostly use them to provide debug information */
#define NSLOOKUP_CMD /* DNS resolving command */
#define TIME_CMD /* Show current local time (useful for HTTPS) */
#define REBOOT_CMD /* Reboot if the script fails */
#define PING_CMD /* We may send an initial ping request */
#define NTP_CMD /* We do time syncronization during boot */
#define CERT_CMD

#define BUILD_ID "24.11.12"
Empty file added src/config/local/ioapi.h
Empty file.
Empty file added src/config/local/isa.h
Empty file.
Empty file added src/config/local/nap.h
Empty file.
Empty file added src/config/local/reboot.h
Empty file.
Empty file added src/config/local/sanboot.h
Empty file.
Empty file added src/config/local/serial.h
Empty file.
Empty file added src/config/local/settings.h
Empty file.
Empty file added src/config/local/sideband.h
Empty file.
Empty file added src/config/local/time.h
Empty file.
Empty file added src/config/local/timer.h
Empty file.
Empty file added src/config/local/umalloc.h
Empty file.
9 changes: 9 additions & 0 deletions src/config/local/usb.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* No need for USB support with auto execute script */
//#undef USB_HCD_XHCI /* xHCI USB host controller */
//#undef USB_HCD_EHCI /* EHCI USB host controller */
//#undef USB_HCD_UHCI /* UHCI USB host controller */

//#undef USB_KEYBOARD /* USB keyboards */
#undef USB_BLOCK /* USB block devices */

//#undef USB_EFI /* Provide EFI_USB_IO_PROTOCOL interface */

0 comments on commit b6605d0

Please sign in to comment.