Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
wjz304 committed Aug 19, 2023
1 parent ab355f2 commit 19d142c
Show file tree
Hide file tree
Showing 8 changed files with 334 additions and 274 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
*.sh eol=lf
*.sh eol=lf
8 changes: 4 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "redpill-lkm"]
path = redpill-lkm
url = https://github.com/wjz304/redpill-lkm
path = redpill-lkm
url = https://github.com/wjz304/redpill-lkm
[submodule "addons"]
path = addons
url = https://github.com/wjz304/arpl-addons
path = addons
url = https://github.com/wjz304/arpl-addons
4 changes: 2 additions & 2 deletions files/board/arpl/make-img.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ BOARD_PATH="${CONFIG_DIR}/board/arpl"

echo "Creating image file"
# unzip base image
gzip -dc "${BOARD_PATH}/grub.img.gz" > "${IMAGE_FILE}"
gzip -dc "${BOARD_PATH}/grub.img.gz" >"${IMAGE_FILE}"
# fdisk
fdisk -l "${IMAGE_FILE}"
# Find idle of loop device
LOOPX=`sudo losetup -f`
LOOPX=$(sudo losetup -f)
# Setup the ${LOOPX} loop device
sudo losetup -P "${LOOPX}" "${IMAGE_FILE}"

Expand Down
9 changes: 4 additions & 5 deletions img-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ set -e

. scripts/func.sh


if [ ! -d .buildroot ]; then
echo "Downloading buildroot"
git clone --single-branch -b 2023.02.x https://github.com/buildroot/buildroot.git .buildroot
Expand All @@ -25,15 +24,15 @@ rm -rf ".buildroot/board/arpl/p3"

# Copy files
echo "Copying files"
VERSION=`cat VERSION`
VERSION=$(cat VERSION)
sed 's/^ARPL_VERSION=.*/ARPL_VERSION="'${VERSION}'"/' -i files/board/arpl/overlayfs/opt/arpl/include/consts.sh
echo "${VERSION}" > files/board/arpl/p1/ARPL-VERSION
echo "${VERSION}" >files/board/arpl/p1/ARPL-VERSION
cp -Ru files/* .buildroot/

cd .buildroot
echo "Generating default config"
make BR2_EXTERNAL=../external -j`nproc` arpl_defconfig
make BR2_EXTERNAL=../external -j$(nproc) arpl_defconfig
echo "Version: ${VERSION}"
echo "Building... Drink a coffee and wait!"
make BR2_EXTERNAL=../external -j`nproc`
make BR2_EXTERNAL=../external -j$(nproc)
cd -
Loading

0 comments on commit 19d142c

Please sign in to comment.