Skip to content

Commit 4b37c62

Browse files
glebmpcercuei
authored andcommitted
Add ubiboot package
Signed-off-by: Gleb Mazovetskiy <glex.spb@gmail.com>
1 parent ff435b5 commit 4b37c62

5 files changed

Lines changed: 58 additions & 0 deletions

File tree

board/opendingux/Config.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ menu "OpenDingux packages"
1212
source "$BR2_EXTERNAL_OPENDINGUX_PATH/package/unlockvt/Config.in"
1313

1414
endmenu
15+
16+
menu "Bootloaders"
17+
18+
source "$BR2_EXTERNAL_OPENDINGUX_PATH/boot/ubiboot/Config.in"
19+
20+
endmenu
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
config BR2_TARGET_UBIBOOT
2+
bool "UBIBoot"
3+
help
4+
UBIBoot is a very small and simple bootloader for
5+
Ingenic JZ47xx based boards, which is able to start
6+
a Linux kernel located on a UBI partition.
7+
8+
if BR2_TARGET_UBIBOOT
9+
config BR2_TARGET_UBIBOOT_BOARDNAME
10+
string "UBIBoot board name"
11+
help
12+
One of UBIBoot supported boards to be built.
13+
This will be suffixed with _config to meet UbiBoot
14+
standard naming.
15+
endif
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sha256 d095208e4587f2446aea94b05acf9fa1bfc6e7d750c46fccdd8f5b2eae2de84f ubiboot-121d5ae7af.tar.gz
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
################################################################################
2+
#
3+
# UbiBoot
4+
#
5+
################################################################################
6+
7+
UBIBOOT_VERSION = 121d5ae7af
8+
UBIBOOT_SITE = $(call github,pcercuei,UBIBoot,$(UBIBOOT_VERSION))
9+
UBIBOOT_BOARD_NAME = $(call qstrip,$(BR2_TARGET_UBIBOOT_BOARDNAME))
10+
11+
UBIBOOT_LICENSE = GPLv2+
12+
UBIBOOT_LICENSE_FILES = README
13+
14+
UBIBOOT_INSTALL_IMAGES = YES
15+
16+
define UBIBOOT_BUILD_CMDS
17+
$(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" -C $(@D) CONFIG=$(UBIBOOT_BOARD_NAME)
18+
endef
19+
20+
define UBIBOOT_INSTALL_IMAGES_CMDS
21+
mkdir -p $(BINARIES_DIR)/ubiboot
22+
$(INSTALL) -D -m 0755 $(@D)/output/$(UBIBOOT_BOARD_NAME)/* $(BINARIES_DIR)/ubiboot
23+
endef
24+
25+
$(eval $(generic-package))
26+
27+
ifeq ($(BR2_TARGET_UBIBOOT),y)
28+
# we NEED a board name unless we're at make source
29+
ifeq ($(filter source,$(MAKECMDGOALS)),)
30+
ifeq ($(UBIBOOT_BOARD_NAME),)
31+
$(error NO UBIBoot board name set. Check your BR2_BOOT_UBIBOOT_BOARDNAME setting)
32+
endif
33+
endif
34+
35+
endif

board/opendingux/external.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
include $(sort $(wildcard $(BR2_EXTERNAL_OPENDINGUX_PATH)/boot/*/*.mk))
12
include $(sort $(wildcard $(BR2_EXTERNAL_OPENDINGUX_PATH)/package/*/*.mk))

0 commit comments

Comments
 (0)