Compare commits
2 Commits
3f4a3c7d7e
...
433e4bf971
| Author | SHA1 | Date | |
|---|---|---|---|
| 433e4bf971 | |||
| d2f17da948 |
@@ -543,7 +543,7 @@ fromSource() {
|
||||
|
||||
declare src_url="https://github.com/openwrt/openwrt.git"
|
||||
declare seed_file="$GITWORKTREEDIR/.config"
|
||||
declare pkg kopt opt commit seed_file wt_cmd wt_commit
|
||||
declare pkg kopt opt commit seed_file wt_cmd wt_commit description
|
||||
declare -a make_opts config_opts
|
||||
|
||||
echo "Building from source is under development"
|
||||
@@ -582,13 +582,23 @@ fromSource() {
|
||||
;;
|
||||
esac
|
||||
|
||||
[[ -d "$GITWORKTREEDIR" ]] && rm -rf "$GITWORKTREEDIR"
|
||||
|
||||
execute "${wt_cmd[@]}" "$wt_commit"
|
||||
|
||||
# Print commit information
|
||||
commit=$(git -C "$GITWORKTREEDIR" rev-parse HEAD)
|
||||
description=$(git -C "$GITWORKTREEDIR" describe)
|
||||
echo "Current commit hash: $commit"
|
||||
(( DEBUG )) && git -C "$GITWORKTREEDIR" log -1
|
||||
(( DEBUG )) && git -C "$GITWORKTREEDIR" describe
|
||||
echo "Git worktree description: $description"
|
||||
|
||||
if (( DEBUG )); then
|
||||
if (( YES )); then
|
||||
git --no-pager -C "$GITWORKTREEDIR" log -1
|
||||
else
|
||||
git -C "$GITWORKTREEDIR" log -1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Enter worktree
|
||||
pushd "$GITWORKTREEDIR" || return 1
|
||||
|
||||
6
profiles
6
profiles
@@ -53,7 +53,8 @@ r4s['packages']="\
|
||||
r4s['kopts']="\
|
||||
CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y \
|
||||
CONFIG_BTRFS_PROGS_ZSTD=y \
|
||||
CONFIG_TARGET_ROOTFS_PARTSIZE=1024"
|
||||
CONFIG_TARGET_ROOTFS_PARTSIZE=1024 \
|
||||
CONFIG_TARGET_KERNEL_PARTSIZE=128"
|
||||
r4s['files']="\
|
||||
/mnt/backup"
|
||||
|
||||
@@ -120,7 +121,8 @@ n5100['packages']="\
|
||||
n5100['kopts']="\
|
||||
CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y \
|
||||
CONFIG_BTRFS_PROGS_ZSTD=y \
|
||||
CONFIG_TARGET_ROOTFS_PARTSIZE=1024"
|
||||
CONFIG_TARGET_ROOTFS_PARTSIZE=1024 \
|
||||
CONFIG_TARGET_KERNEL_PARTSIZE=128"
|
||||
n5100['files']="\
|
||||
/mnt/backup"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user