forked from kiddin9/packages-compile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 62294c3
Showing
15 changed files
with
523 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#================================================= | ||
# https://github.com/P3TERX/Actions-OpenWrt | ||
# Description: Build OpenWrt using GitHub Actions | ||
# Lisence: MIT | ||
# Author: P3TERX | ||
# Blog: https://p3terx.com | ||
#================================================= | ||
|
||
name: Repo Dispatcher | ||
|
||
on: | ||
# push: | ||
# branches: | ||
# - master | ||
schedule: | ||
- cron: 30 15 * * * | ||
watch: | ||
types: started | ||
|
||
env: | ||
REPO_TOKEN: ${{ secrets.REPO_TOKEN }} | ||
TZ: Asia/Shanghai | ||
|
||
jobs: | ||
build: | ||
if: github.event.repository.owner.id == github.event.sender.id | ||
runs-on: Ubuntu-20.04 | ||
steps: | ||
- name: cancel running workflows | ||
uses: styfle/cancel-workflow-action@main | ||
with: | ||
workflow_id: 4439874 | ||
access_token: ${{ github.token }} | ||
|
||
- name: Trigger matrix Update | ||
run: | | ||
gitdate=$(curl -H "Authorization: token ${{ secrets.REPO_TOKEN }}" -s "https://api.github.com/repos/kiddin9/openwrt-packages/commits?&per_page=1" | jq -r '.[0].commit.committer.date') | ||
gitdate=$(date -d "$gitdate" +%s) | ||
now=$(date -d "$(date '+%Y-%m-%d %H:%M:%S')" +%s) | ||
if [[ $(expr $gitdate + 90000) < $now ]]; then | ||
exit; | ||
fi | ||
curl \ | ||
-X POST https://api.github.com/repos/${{ github.repository }}/dispatches \ | ||
-H "Accept: application/vnd.github.everest-preview+json" \ | ||
-H "Authorization: token ${{ secrets.REPO_TOKEN }}" \ | ||
-d '{"event_type": "x86_64 ${{ env.SSH }}", "client_payload": {"target": "x86_64"}}' | ||
curl \ | ||
-X POST https://api.github.com/repos/${{ github.repository }}/dispatches \ | ||
-H "Accept: application/vnd.github.everest-preview+json" \ | ||
-H "Authorization: token ${{ secrets.REPO_TOKEN }}" \ | ||
-d '{"event_type": "aarch64 ${{ env.SSH }}", "client_payload": {"target": "nanopi-r2s"}}' | ||
curl \ | ||
-X POST https://api.github.com/repos/${{ github.repository }}/dispatches \ | ||
-H "Accept: application/vnd.github.everest-preview+json" \ | ||
-H "Authorization: token ${{ secrets.REPO_TOKEN }}" \ | ||
-d '{"event_type": "aarch64_cortex-a72 ${{ env.SSH }}", "client_payload": {"target": "Rpi-4B"}}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
openwrt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CONFIG_TARGET_bcm27xx=y | ||
CONFIG_TARGET_bcm27xx_bcm2711=y | ||
CONFIG_TARGET_bcm27xx_bcm2711_DEVICE_rpi-4=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
CONFIG_LUCI_CSSTIDY=n | ||
CONFIG_LUCI_LANG_zh_Hans=y | ||
CONFIG_AUTOREBUILD=y | ||
CONFIG_AUTOREMOVE=n | ||
CONFIG_ALL=y | ||
CONFIG_ALL_NONSHARED=n | ||
CONFIG_ALL_KMODS=n | ||
CONFIG_SIGNED_PACKAGES=n | ||
CONFIG_XRAY_PROVIDE_V2RAY=y | ||
CONFIG_PACKAGE_dnsmasq=n | ||
CONFIG_v2ray-plugin_INCLUDE_GOPROXY=n | ||
CONFIG_V2RAY_COMPRESS_UPX=n | ||
CONFIG_XRAY_COMPRESS_UPX=n | ||
|
||
CONFIG_PACKAGE_luci-app-turboacc=n | ||
|
||
CONFIG_PACKAGE_luci-app-passwall_INCLUDE_v2ray-plugin=n | ||
|
||
# end of 3. Applications | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/bin/bash | ||
|
||
shopt -s extglob | ||
|
||
sed -i '/ refresh_config();/d' scripts/feeds | ||
|
||
rm -rf feeds/custom/{frp,xray-core,.github,diy,mt-drivers,miniupnpd,mt7601u-ap,openwrt-fullconenat,mtk-eip93,rtl8*,r81*,shortcut-fe,mtk_apcli,fast-classifier,luci-app-mtwifi,oaf,ntfs3,natflow,.gitignore,LICENSE,README.md} | ||
|
||
rm -Rf feeds/luci/{applications,collections,protocols,themes,libs,docs} | ||
rm -Rf feeds/luci/modules/!(luci-base) | ||
# rm -rf feeds/packages/libs/!(libev|c-ares|cjson|boost|lib*|expat|tiff|freetype|udns|pcre2) | ||
rm -Rf feeds/packages/!(lang|libs|devel|utils|net|multimedia) | ||
rm -Rf feeds/packages/multimedia/!(gstreamer1) | ||
rm -Rf feeds/packages/utils/!(pcsc-lite|xz) | ||
rm -Rf feeds/packages/net/!(mosquitto|curl) | ||
rm -Rf feeds/packages/lang/!(python|golang|node|node-yarn) | ||
rm -Rf feeds/base/package/{kernel,firmware} | ||
rm -Rf feeds/base/package/network/!(services) | ||
rm -Rf feeds/base/package/network/services/!(ppp) | ||
rm -Rf feeds/base/package/utils/!(util-linux|lua) | ||
rm -Rf feeds/base/package/system/!(opkg|ubus|uci) | ||
rm -Rf feeds/custom/luci-app-*/po/!(zh_Hans) | ||
|
||
./scripts/feeds update -a | ||
./scripts/feeds install -a | ||
|
||
sed -i 's/Os/O2/g' include/target.mk | ||
#rm -rf ./feeds/packages/lang/golang | ||
#svn co https://github.com/immortalwrt/packages/trunk/lang/golang feeds/packages/lang/golang | ||
sed -i "s/+nginx\( \|$\)/+nginx-ssl\1/g" package/feeds/custom/*/Makefile | ||
sed -i 's/+python\( \|$\)/+python3/g' package/feeds/custom/*/Makefile | ||
sed -i 's?../../lang?$(TOPDIR)/feeds/packages/lang?g' package/feeds/custom/*/Makefile | ||
for ipk in $(find package/feeds/custom/* -maxdepth 0); do | ||
if [[ ! -d "$ipk/patches" && ! "$(grep "codeload.github.com" $ipk/Makefile)" ]]; then | ||
find $ipk/ -maxdepth 1 -name "Makefile" ! -path *tcping* ! -path *rblibtorrent* ! -path *n2n_v2* \ | ||
| xargs -i sed -i "s/PKG_SOURCE_VERSION:=[0-9a-z]\{15,\}/PKG_SOURCE_VERSION:=HEAD/g" {} | ||
fi | ||
done | ||
sed -i 's/$(VERSION) &&/$(VERSION) ;/g' include/download.mk | ||
|
||
mv feeds/base feeds/base.bak | ||
mv feeds/packages feeds/packages.bak | ||
make defconfig | ||
rm -Rf tmp | ||
mv feeds/base.bak feeds/base | ||
mv feeds/packages.bak feeds/packages | ||
sed -i 's/CONFIG_ALL=y/CONFIG_ALL=n/' .config | ||
|
||
cp -f devices/common/po2lmo staging_dir/host/bin/po2lmo | ||
chmod +x staging_dir/host/bin/po2lmo | ||
|
||
sed -i 's,$(STAGING_DIR_HOST)/bin/upx,upx,' package/feeds/custom/*/Makefile | ||
|
||
sed -i "/mediaurlbase/d" package/feeds/*/luci-theme*/root/etc/uci-defaults/* | ||
|
||
sed -i '/WARNING: Makefile/d' scripts/package-metadata.pl | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
src-git base https://git.openwrt.org/openwrt/openwrt.git;openwrt-21.02 | ||
src-git packages https://git.openwrt.org/feed/packages.git;openwrt-21.02 | ||
src-git luci https://git.openwrt.org/project/luci.git;openwrt-21.02 | ||
src-git custom https://github.com/kiddin9/openwrt-packages.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- a/include/toplevel.mk | ||
+++ b/include/toplevel.mk | ||
@@ -219,7 +219,6 @@ | ||
|
||
%:: | ||
@+$(PREP_MK) $(NO_TRACE_MAKE) -r -s prereq | ||
- @./scripts/config/conf $(KCONF_FLAGS) --defconfig=.config Config.in | ||
@+$(ULIMIT_FIX) $(SUBMAKE) -r $@ | ||
|
||
else |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
REPO_URL="https://github.com/openwrt/openwrt" | ||
REPO_BRANCH="openwrt-21.02" | ||
CONFIG_FILE=".config" | ||
DIY_SH="diy.sh" | ||
FREE_UP_DISK="false" | ||
SSH_ACTIONS="false" | ||
UPLOAD_FIRMWARE_FOR_ARTIFACT="true" | ||
UPLOAD_FIRMWARE_FOR_RELEASE="true" | ||
UPLOAD_FIRMWARE_TO_COWTRANSFER="false" | ||
UPLOAD_FIRMWARE_TO_WETRANSFER="false" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CONFIG_TARGET_rockchip=y | ||
CONFIG_TARGET_rockchip_armv8=y | ||
CONFIG_TARGET_rockchip_armv8_DEVICE_friendlyarm_nanopi-r2s=y | ||
|
||
CONFIG_PACKAGE_luci-app-phtunnel=n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CONFIG_TARGET_ramips=y | ||
CONFIG_TARGET_ramips_mt7621=y | ||
CONFIG_TARGET_ramips_mt7621_DEVICE_xiaomi_redmi-router-ac2100=y | ||
|
||
CONFIG_KERNEL_MIPS_FPU_EMULATOR=y | ||
|
||
CONFIG_PACKAGE_luci-app-diskman=n | ||
CONFIG_PACKAGE_luci-app-mtwifi=n | ||
CONFIG_PACKAGE_sub-web=n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# rm -Rf package/feeds/packages/node | ||
# svn co https://github.com/coolsnowwolf/packages/trunk/lang/node package/feeds/custom/node | ||
|
||
rm -rf package/feeds/custom/sub-web | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CONFIG_TARGET_x86=y | ||
CONFIG_TARGET_x86_64=y |