Skip to content

Instantly share code, notes, and snippets.

@scottwallacesh
Last active May 26, 2020 16:00
Show Gist options
  • Save scottwallacesh/aa548a59ff7e698bd89fa2f598d0aa61 to your computer and use it in GitHub Desktop.
Save scottwallacesh/aa548a59ff7e698bd89fa2f598d0aa61 to your computer and use it in GitHub Desktop.
Compile nginx with SSL for OpenWRT
# Pre-requisites
brew install gnu-tar gnu-getopt gnu-time gawk wget grep
# Case sensitive-filesystem
hdiutil create -size 20g -type SPARSE -fs "Case-sensitive HFS+" -volname OpenWrt OpenWrt.sparseimage
hdiutil attach OpenWrt.sparseimage
cd /Volumes/OpenWrt
# OpenWrt/LEDE source
git clone https://github.com/openwrt/openwrt.git
cd openwrt
git checkout v18.06.0
# Make/Build OpenWRT
PATH="/usr/local/opt/gnu-getopt/bin:$PATH"
make menuconfig # Target System (Marvell Armada 37x/38x/XP) | Target Profile (Linksys WRT1900ACv2 (Cobra))
make V=s
# Make/Build nginx with SSL
./scripts/feeds update
./scripts/feeds install nginx
make menuconfig # Network > Web Servers/Proxies > nginx (M) > nginx > Configuration > Enable SSL Module (Y)
make -j5
# Copy up new package to router
scp bin/packages/arm_cortex-a9_vfpv3/packages/nginx_1.12.2-1_arm_cortex-a9_vfpv3.ipk root@router:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment