-
Notifications
You must be signed in to change notification settings - Fork 19
OpenWrt Build
xxooxxooxx edited this page Jan 20, 2020
·
1 revision
sudo apt install build-essential libncurses5-dev gawk git libssl-dev gettext zlib1g-dev swig unzip time
wget https://downloads.openwrt.org/releases/19.07.0/targets/x86/64/openwrt-19.07.0-x86-64-generic.manifest
cat openwrt-19.07.0-x86-64-generic.manifest |grep kernel
kernel - 4.14.162-1-e1dd7676581672f6f0bdb1363506dee1
git clone https://git.openwrt.org/openwrt/openwrt.git
cd openwrt
make prereq
git fetch --tags
git tag -l
git checkout v19.07.0
wget https://downloads.openwrt.org/releases/19.07.0/targets/x86/64/feeds.buildinfo
diff feeds.buildinfo feeds.conf.default
1,4c1,4
< src-git packages https://git.openwrt.org/feed/packages.git^d974cd367
< src-git luci https://git.openwrt.org/project/luci.git^35aa52705
< src-git routing https://git.openwrt.org/feed/routing.git^c82ce8d
< src-git telephony https://git.openwrt.org/feed/telephony.git^6f95d6a
---
> src-git packages https://git.openwrt.org/feed/packages.git^d974cd36735353204fac679cb9febd6c9814c326
> src-git luci https://git.openwrt.org/project/luci.git^35aa5270592f7e837c42aa097f8fbb06faa4017d
> src-git routing https://git.openwrt.org/feed/routing.git^c82ce8d095a87df32bbd3a89e3cf113721d3ae82
> src-git telephony https://git.openwrt.org/feed/telephony.git^6f95d6ab3f359ee2ce81c20522700937424d1591
./scripts/feeds update -a && ./scripts/feeds install -a
rm -f .config*
wget -O .config https://downloads.openwrt.org/releases/19.07.0/targets/x86/64/config.buildinfo
make defconfig
make target/linux/{clean,compile}
find build_dir/ -name .vermagic -exec cat {} \;
e1dd7676581672f6f0bdb1363506dee1
make tools/install V=s
make toolchain/install V=s
make target/linux/compile V=s
make package/kernel/linux/compile V=s
make download && make -j
vi ./include/kernel-defaults.mk
grep '=[ym]' $(LINUX_DIR)/.config.set | LC_ALL=C sort | mkhash md5 > $(LINUX_DIR)/.vermagic
cat $(TOPDIR)/vermagic >$(LINUX_DIR)/.vermagic
echo 11111111111111111111111111111>vermagic
make target/linux/{clean,compile}
find build_dir/ -name .vermagic -exec cat {} \;
11111111111111111111111111111