Skip to content

MomoFlora/EternalWrt-Compile-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

178 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EternalWrt Banner

EternalWrt — One-Click Build Script

Caution

Security & Usage Notice 🔒

  • Protect your credentials: Never commit your git_password or ROOT_PASSWORD to public repositories or share them with others.
  • Replace default values: Be sure to replace placeholders such as xxxxxx and password with strong, unique credentials before running the script.
  • Review external scripts: This script downloads and executes code from init.kejizero.xyz. Only run it in environments you trust and after reviewing the source if necessary.

🛠️ 1. Configure Environment Variables

First, define your authentication details and toggle your preferred build parameters. Copy and paste the following into your terminal:

export git_name=MomoFlora git_password=xxxxxx
export BUILD_FAST=y ENABLE_CCACHE=y ENABLE_BPF=y ENABLE_LTO=y ENABLE_LRNG=y ENABLE_MOLD=y USE_GCC16=y ENABLE_OTA=y OPENWRT_CORE=y ROOT_PASSWORD=password

Note

What do these flags do? 💡

  • BUILD_FAST=y — Accelerates the compilation process.
  • ENABLE_BPF, LTO, LRNG — Enables advanced system features (eBPF, Link-Time Optimization, Legacy RNG).
  • ENABLE_MOLD=y — Utilizes the high-speed mold linker to drastically reduce linking time.
  • USE_GCC16=y — Forces the compiler to use GCC version 16.
  • ENABLE_OTA=y — Prepares the build for Over-The-Air (OTA) updates.

🏃‍♂️ 2. Execute the Script

Once your environment variables are set, trigger the remote build script. Specify your target version (e.g., v25) and system architecture (e.g., x86_64):

bash <(curl -sS https://init.kejizero.xyz/build.sh) v25 x86_64

Tip

Sit back and relax! ☕ The script will automatically fetch the necessary dependencies, apply your custom configurations, and compile your v25 release for x86_64. Depending on your hardware, this may take a few minutes.

About

EternalWrt — an optimized X86_64 firmware based on the official OpenWrt build system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors