Skip to content

Commit

Permalink
Add build config and script
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxiaoqiao committed May 22, 2023
1 parent 2f61959 commit b5ea801
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
19 changes: 19 additions & 0 deletions GainStrong-Oolite-V3.4.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
CONFIG_TARGET_ramips=y
CONFIG_TARGET_ramips_mt76x8=y
CONFIG_TARGET_ramips_mt76x8_DEVICE_gainstrong_oolite-v3.4=y

CONFIG_TARGET_ROOTFS_INITRAMFS=y

CONFIG_IMAGEOPT=y
CONFIG_VERSIONOPT=y
CONFIG_VERSION_FILENAMES=y
CONFIG_VERSION_CODE_FILENAMES=y

CONFIG_PACKAGE_kmod-sdhci-mt7620=y
CONFIG_PACKAGE_kmod-i2c-mt7628=y

CONFIG_PACKAGE_luci=y

CONFIG_PACKAGE_i2c-tools=y
CONFIG_PACKAGE_usbutils=y
CONFIG_PACKAGE_uboot-envtools=y
15 changes: 15 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

PROCUCT_NAME="GainStrong-Oolite-V3.4"

OPENWRT_VERSION=$(grep ^VERSION_NUMBER include/version.mk | tail -n 1 | awk -F , '{print $3}' | sed 's/.$//')
COMMIT_VERSION=$(./scripts/getver.sh)

cp $PROCUCT_NAME.config .config
echo "CONFIG_KERNEL_BUILD_USER=\"$PROCUCT_NAME\"" >> .config
echo "CONFIG_KERNEL_BUILD_DOMAIN=\"$OPENWRT_VERSION-$COMMIT_VERSION\"" >> .config

make package/symlinks
make defconfig
make package/busybox/clean
make -j8 V=sc

0 comments on commit b5ea801

Please sign in to comment.