Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lx2160a_build
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boxiang Sun
lx2160a_build
Commits
ec5d3494
Commit
ec5d3494
authored
Dec 21, 2022
by
Josua Mayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runme: allow ubuntu version choice
- focal (default) - jammy
parent
69a80e8c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
runme.sh
runme.sh
+16
-2
No files found.
runme.sh
View file @
ec5d3494
...
@@ -21,6 +21,10 @@ BUILDROOT_VERSION=2020.02.1
...
@@ -21,6 +21,10 @@ BUILDROOT_VERSION=2020.02.1
:
${
SECURE
:
=false
}
:
${
SECURE
:
=false
}
:
${
ATF_DEBUG
:
=false
}
:
${
ATF_DEBUG
:
=false
}
:
${
DISTRO
:
=ubuntu
}
:
${
DISTRO
:
=ubuntu
}
# Ubuntu Version
# - focal (20.04)
# - jammy (22.04)
:
${
UBUNTU_VERSION
:
=focal
}
:
${
BR2_PRIMARY_SITE
:
=
}
# custom buildroot mirror
:
${
BR2_PRIMARY_SITE
:
=
}
# custom buildroot mirror
if
[
"x
$SHALLOW
"
==
"xtrue"
]
;
then
if
[
"x
$SHALLOW
"
==
"xtrue"
]
;
then
...
@@ -258,6 +262,16 @@ done
...
@@ -258,6 +262,16 @@ done
if
[[
!
-f
$ROOTDIR
/build/ubuntu-core.ext4
]]
&&
[
"x
$DISTRO
"
==
"xubuntu"
]
;
then
if
[[
!
-f
$ROOTDIR
/build/ubuntu-core.ext4
]]
&&
[
"x
$DISTRO
"
==
"xubuntu"
]
;
then
if
[[
$UBUNTU_VERSION
==
focal
]]
;
then
UBUNTU_BASE_URL
=
http://cdimage.ubuntu.com/ubuntu-base/releases/20.04/release/ubuntu-base-20.04.5-base-arm64.tar.gz
fi
if
[[
$UBUNTU_VERSION
==
jammy
]]
;
then
UBUNTU_BASE_URL
=
http://cdimage.ubuntu.com/ubuntu-base/releases/22.04/release/ubuntu-base-22.04.1-base-arm64.tar.gz
fi
if
[[
-z
$UBUNTU_BASE_URL
]]
;
then
echo
"Error: Unknown URL for Ubuntu Version
\"\$
{UBUNTU_VERSION}
\"
! Please provide UBUNTU_BASE_URL."
exit
1
fi
cd
$ROOTDIR
/build
cd
$ROOTDIR
/build
mkdir
-p
ubuntu
mkdir
-p
ubuntu
cd
ubuntu
cd
ubuntu
...
@@ -282,8 +296,8 @@ case "\$1" in
...
@@ -282,8 +296,8 @@ case "\$1" in
mount /dev/vda /mnt
mount /dev/vda /mnt
cd /mnt/
cd /mnt/
cat /proc/net/pnp > /etc/resolv.conf
cat /proc/net/pnp > /etc/resolv.conf
wget -c -P /tmp/
http://cdimage.ubuntu.com/ubuntu-base/releases/20.04/release/ubuntu-base-20.04.1-base-arm64.tar.gz
wget -c -P /tmp/
-O /tmp/ubuntu-base.dl "
${
UBUNTU_BASE_URL
}
"
tar
zxf /tmp/ubuntu-base-20.04.1-base-arm64.tar.gz -C /mnt
tar
-C /mnt -xf /tmp/ubuntu-base.dl
mount -o bind /proc /mnt/proc/
mount -o bind /proc /mnt/proc/
mount -o bind /sys/ /mnt/sys/
mount -o bind /sys/ /mnt/sys/
mount -o bind /dev/ /mnt/dev/
mount -o bind /dev/ /mnt/dev/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment