Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 96 additions & 1 deletion .github/local/Makefile.local
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
UBOOT_PRODUCTS := radxa-rk3528 radxa-rk3576
UBOOT_PRODUCTS := radxa-rk3528 rock-3b rock-3c radxa-rk3576 radxa-e54c rock-5b-plus rock-5c

define find_latest_file
$(shell find $(1) -name "$(2)*$(3)" 2>/dev/null | sort -Vr | head -1 | xargs realpath)
Expand Down Expand Up @@ -31,6 +31,44 @@ radxa-rk3528: radxa-rk3528_build
cp setup/u-boot_setup-rockchip.sh out/$@/setup.sh
cp setup/u-boot_setup-rockchip.ps1 out/$@/setup.ps1

.PHONY: rock-3b_defconfig
rock-3b_defconfig: clean_config
$(UMAKE) rock-3b-rk3568_defconfig

.PHONY: rock-3b_build
rock-3b_build: rock-3b_defconfig
$(UMAKE) all u-boot.itb
sed -i "s|FlashBoot=.*|FlashBoot=../src/spl/u-boot-spl.bin|g" "rkbin/RKBOOT/RK3568MINIALL.ini"
cd rkbin && tools/boot_merger "RKBOOT/RK3568MINIALL.ini"

.PHONY: rock-3b
rock-3b: rock-3b_build
mkdir -p out/$@
mv rkbin/*_loader_*.bin "out/$@/rkboot.bin"
mv rkbin/*idblock*.img "out/$@/idbloader.img"
mv src/u-boot.itb "out/$@/"
cp setup/u-boot_setup-rockchip.sh out/$@/setup.sh
cp setup/u-boot_setup-rockchip.ps1 out/$@/setup.ps1

.PHONY: rock-3c_defconfig
rock-3c_defconfig: clean_config
$(UMAKE) rock-3c-rk3566_defconfig

.PHONY: rock-3c_build
rock-3c_build: rock-3c_defconfig
$(UMAKE) all u-boot.itb
sed -i "s|FlashBoot=.*|FlashBoot=../src/spl/u-boot-spl.bin|g" "rkbin/RKBOOT/RK3566MINIALL.ini"
cd rkbin && tools/boot_merger "RKBOOT/RK3566MINIALL.ini"

.PHONY: rock-3c
rock-3c: rock-3c_build
mkdir -p out/$@
mv rkbin/*_loader_*.bin "out/$@/rkboot.bin"
mv rkbin/*idblock*.img "out/$@/idbloader.img"
mv src/u-boot.itb "out/$@/"
cp setup/u-boot_setup-rockchip.sh out/$@/setup.sh
cp setup/u-boot_setup-rockchip.ps1 out/$@/setup.ps1

.PHONY: radxa-rk3576_defconfig
radxa-rk3576_defconfig: clean_config
$(UMAKE) rock-4d-rk3576_defconfig
Expand All @@ -49,3 +87,60 @@ radxa-rk3576: radxa-rk3576_build
mv src/u-boot.itb "out/$@/"
cp setup/u-boot_setup-rockchip.sh out/$@/setup.sh
cp setup/u-boot_setup-rockchip.ps1 out/$@/setup.ps1

.PHONY: radxa-e54c_defconfig
radxa-e54c_defconfig: clean_config
$(UMAKE) radxa-e54c-spi-rk3588s_defconfig

.PHONY: radxa-e54c_build
radxa-e54c_build: radxa-e54c_defconfig
$(UMAKE) all u-boot.itb
sed -i "s|FlashBoot=.*|FlashBoot=../src/spl/u-boot-spl.bin|g" "rkbin/RKBOOT/RK3588MINIALL.ini"
cd rkbin && tools/boot_merger "RKBOOT/RK3588MINIALL.ini"

.PHONY: radxa-e54c
radxa-e54c: radxa-e54c_build
mkdir -p out/$@
mv rkbin/*_loader_*.bin "out/$@/rkboot.bin"
mv rkbin/*idblock*.img "out/$@/idbloader.img"
mv src/u-boot.itb "out/$@/"
cp setup/u-boot_setup-rockchip.sh out/$@/setup.sh
cp setup/u-boot_setup-rockchip.ps1 out/$@/setup.ps1

.PHONY: rock-5b-plus_defconfig
rock-5b-plus_defconfig: clean_config
$(UMAKE) rock-5b-plus-rk3588_defconfig

.PHONY: rock-5b-plus_build
rock-5b-plus_build: rock-5b-plus_defconfig
$(UMAKE) all u-boot.itb
sed -i "s|FlashBoot=.*|FlashBoot=../src/spl/u-boot-spl.bin|g" "rkbin/RKBOOT/RK3588MINIALL.ini"
cd rkbin && tools/boot_merger "RKBOOT/RK3588MINIALL.ini"

.PHONY: rock-5b-plus
rock-5b-plus: rock-5b-plus_build
mkdir -p out/$@
mv rkbin/*_loader_*.bin "out/$@/rkboot.bin"
mv rkbin/*idblock*.img "out/$@/idbloader.img"
mv src/u-boot.itb "out/$@/"
cp setup/u-boot_setup-rockchip.sh out/$@/setup.sh
cp setup/u-boot_setup-rockchip.ps1 out/$@/setup.ps1

.PHONY: rock-5c_defconfig
rock-5c_defconfig: clean_config
$(UMAKE) rock-5c-rk3588s_defconfig

.PHONY: rock-5c_build
rock-5c_build: rock-5c_defconfig
$(UMAKE) all u-boot.itb
sed -i "s|FlashBoot=.*|FlashBoot=../src/spl/u-boot-spl.bin|g" "rkbin/RKBOOT/RK3588MINIALL.ini"
cd rkbin && tools/boot_merger "RKBOOT/RK3588MINIALL.ini"

.PHONY: rock-5c
rock-5c: rock-5c_build
mkdir -p out/$@
mv rkbin/*_loader_*.bin "out/$@/rkboot.bin"
mv rkbin/*idblock*.img "out/$@/idbloader.img"
mv src/u-boot.itb "out/$@/"
cp setup/u-boot_setup-rockchip.sh out/$@/setup.sh
cp setup/u-boot_setup-rockchip.ps1 out/$@/setup.ps1
45 changes: 45 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,24 @@ Priority: optional
Description: Radxa U-Boot meta-package for Radxa RK3528 products
This package provides the prebuilt U-Boot for Radxa RK3528 products.

Package: u-boot-rock-3b
Architecture: all
Depends: u-boot-rk2601,
${misc:Depends},
Section: admin
Priority: optional
Description: Radxa U-Boot meta-package for ROCK 3B products
This package provides the prebuilt U-Boot for ROCK 3B products.

Package: u-boot-rock-3c
Architecture: all
Depends: u-boot-rk2601,
${misc:Depends},
Section: admin
Priority: optional
Description: Radxa U-Boot meta-package for ROCK 3C products
This package provides the prebuilt U-Boot for ROCK 3C products.

Package: u-boot-radxa-rk3576
Architecture: all
Depends: u-boot-rk2601,
Expand All @@ -52,3 +70,30 @@ Section: admin
Priority: optional
Description: Radxa U-Boot meta-package for Radxa RK3576 products
This package provides the prebuilt U-Boot for Radxa RK3576 products.

Package: u-boot-radxa-e54c
Architecture: all
Depends: u-boot-rk2601,
${misc:Depends},
Section: admin
Priority: optional
Description: Radxa U-Boot meta-package for Radxa E54C products
This package provides the prebuilt U-Boot for Radxa E54C products.

Package: u-boot-rock-5b-plus
Architecture: all
Depends: u-boot-rk2601,
${misc:Depends},
Section: admin
Priority: optional
Description: Radxa U-Boot meta-package for ROCK 5B+ products
This package provides the prebuilt U-Boot for ROCK 5B+ products.

Package: u-boot-rock-5c
Architecture: all
Depends: u-boot-rk2601,
${misc:Depends},
Section: admin
Priority: optional
Description: Radxa U-Boot meta-package for ROCK 5C products
This package provides the prebuilt U-Boot for ROCK 5C products.
2 changes: 1 addition & 1 deletion rkbin