Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
manjaro-arm
packages
core
uboot-pine-h64
Commits
d5992a47
Verified
Commit
d5992a47
authored
Dec 25, 2021
by
Dan Johansen
Browse files
standardize
Signed-off-by:
Dan Johansen
<
strit@manjaro.org
>
parent
08b39803
Pipeline
#6168
passed with stage
in 3 minutes and 56 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
PKGBUILD
View file @
d5992a47
...
...
@@ -4,9 +4,9 @@
pkgname
=
uboot-pine-h64
pkgver
=
2021.10
pkgrel
=
1
pkgrel
=
2
_tfaver
=
2.5
pkgdesc
=
"U-Boot for Pine-h64"
pkgdesc
=
"U-Boot for
Pine64
Pine-h64"
arch
=(
'aarch64'
)
url
=
'http://www.denx.de/wiki/U-Boot/WebHome'
license
=(
'GPL'
)
...
...
@@ -20,26 +20,42 @@ md5sums=('f1392080facf59dd2c34096a5fd95d4c'
'cd0455f0dcd4161201074bacb93446b1'
)
build
()
{
# Avoid build warnings by editing a .config option in place instead of
# appending an option to .config, if an option is already present
update_config
()
{
if
!
grep
-q
"^
$1
=
$2
$"
.config
;
then
if
grep
-q
"^#
$1
is not set$"
.config
;
then
sed
-i
-e
"s/^#
$1
is not set
$/$1
=
$2
/g"
.config
elif
grep
-q
"^
$1
="
.config
;
then
sed
-i
-e
"s/^
$1
=.*/
$1
=
$2
/g"
.config
else
echo
"
$1
=
$2
"
>>
.config
fi
fi
}
unset
CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
cd
trusted-firmware-a-
$_tfaver
echo
-e
"
\n
Building TF-A for Pine64 Pine-h64...
\n
"
make
PLAT
=
sun50i_h6 bl31
cp
build/sun50i_h6/release/bl31.bin ../u-boot-
${
pkgver
/rc/-rc
}
cd
../u-boot-
${
pkgver
/rc/-rc
}
make distclean
echo
-e
"
\n
Building U-Boot for Pine64 Pine-h64...
\n
"
make pine_h64_defconfig
echo
'CONFIG_IDENT_STRING=" Manjaro ARM"'
>>
.config
update_config
'CONFIG_IDENT_STRING'
'" Manjaro Linux ARM"'
update_config
'CONFIG_OF_LIBFDT_OVERLAY'
'y'
make
EXTRAVERSION
=
-
${
pkgrel
}
ca
t
u-boot-sunxi-with-spl.bin
>
u-boot-sunxi-with-spl-pine-h64.bin
c
p
-
a
u-boot-sunxi-with-spl.bin u-boot-sunxi-with-spl-pine-h64.bin
}
package
()
{
cd
u-boot-
${
pkgver
/rc/-rc
}
mkdir
-p
"
${
pkgdir
}
"
/boot/extlinux
mkdir
-p
"
${
pkgdir
}
/boot/extlinux
"
cp
u-boot-sunxi-with-spl-pine-h64.bin
"
${
pkgdir
}
"
/boot
install
-D
-m
0644
u-boot-sunxi-with-spl-pine-h64.bin
-t
"
${
pkgdir
}
"
/boot
}
uboot-pine-h64.install
View file @
d5992a47
...
...
@@ -9,7 +9,7 @@ create_config() {
echo
"LABEL Manjaro ARM
KERNEL /Image
FDT /dtbs/allwinner/sun50i-h6-pine-h64-model-b.dtb
APPEND initrd=/initramfs-linux.img console=ttyS0,115200 root=LABEL=ROOT_MNJRO rw rootwait
quiet
splash plymouth.ignore-serial-consoles"
>
/
boot
/
extlinux
/
extlinux
.
conf
APPEND initrd=/initramfs-linux.img console=ttyS0,115200 root=LABEL=ROOT_MNJRO rw rootwait
audit=0
splash plymouth.ignore-serial-consoles"
>
/
boot
/
extlinux
/
extlinux
.
conf
}
post_install
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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