Skip to content

Commit

Permalink
u-boot: allow another profile to become the default
Browse files Browse the repository at this point in the history
  • Loading branch information
RadxaYuntian committed Oct 16, 2023
1 parent 82a0595 commit d1f5e05
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/u-boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ bsp_reset() {
BSP_COMMIT=
BSP_BRANCH=
BSP_DEFCONFIG=
BSP_REPLACES=

BSP_MAKE_DEFINES=()
BSP_MAKE_TARGETS=("all")
Expand Down Expand Up @@ -225,9 +226,19 @@ bsp_makedeb() {
local VERSION="$(bsp_version)-${PKG_REVISION}${SOURCE_GITREV:+-$SOURCE_GITREV}"
local URL="https://github.com/radxa-pkg/$NAME"
local DESCRIPTION="Radxa U-Boot image for $FORK"
local REPLACES=()
if [[ -n "$BSP_REPLACES" ]]
then
REPLACES+=(
"--provides" "u-boot-$BSP_REPLACES"
"--conflicts" "u-boot-$BSP_REPLACES"
"--replaces" "u-boot-$BSP_REPLACES"
)
fi
fpm -s dir -t deb -n "$NAME" -v "$VERSION" \
--deb-compression xz \
-a arm64 \
"${REPLACES[@]}" \
--url "$URL" \
--description "$DESCRIPTION" \
--license "GPL-2+" \
Expand Down
1 change: 1 addition & 0 deletions u-boot/rknext/fork.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
BSP_GIT="https://github.com/radxa/u-boot.git"
BSP_BRANCH="next-dev"
BSP_MAKE_TARGETS=("u-boot.dtb" "u-boot.itb" "all")
BSP_REPLACES=("rk3588")
SUPPORTED_BOARDS=(
"rock-pi-e"
"rock-5a" "rock-5b" "radxa-nx5-io"
Expand Down

0 comments on commit d1f5e05

Please sign in to comment.