mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 05:36:32 +00:00
at91dataflashboot: convert to GENTARGETS
This commit converts the at91dataflashboot bootloader build process to GENTARGETS. It also does the following changes : * As the package directory name is at91dataflashboot, the configuration options and make variables are renamed to AT91DATAFLASHBOOT instead of DATAFLASHBOOT. * Since the board selection in Kconfig wasn't used anywhere, get rid of it. at91dataflashboot is only for AT91RM9200 apparently anyway. [Peter: add ':=' -> '=' change] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
df9624b73f
commit
4346902ca9
@ -1,25 +1,3 @@
|
|||||||
menuconfig BR2_TARGET_DATAFLASHBOOT
|
menuconfig BR2_TARGET_AT91DATAFLASHBOOT
|
||||||
depends on BR2_arm
|
depends on BR2_arm
|
||||||
bool "AT91 DataFlashBoot"
|
bool "AT91 DataFlashBoot"
|
||||||
|
|
||||||
if BR2_TARGET_DATAFLASHBOOT
|
|
||||||
|
|
||||||
choice
|
|
||||||
prompt "Target Architecture"
|
|
||||||
default BR2_TARGET_DATAFLASHBOOT_AT91RM9200
|
|
||||||
help
|
|
||||||
Select Chip for which Dataflash boot should be built
|
|
||||||
Currently only AT91RM9200 Supported
|
|
||||||
|
|
||||||
config BR2_TARGET_DATAFLASHBOOT_AT91RM9200
|
|
||||||
bool "AT91RM9200"
|
|
||||||
|
|
||||||
config BR2_TARGET_DATAFLASHBOOT_AT91SAM9261
|
|
||||||
bool "AT91SAM9261"
|
|
||||||
|
|
||||||
config BR2_TARGET_DATAFLASHBOOT_AT91SAM9261S
|
|
||||||
bool "AT91SAM9261S"
|
|
||||||
|
|
||||||
endchoice
|
|
||||||
|
|
||||||
endif # BR2_TARGET_DATAFLASHBOOT
|
|
||||||
|
@ -3,44 +3,29 @@
|
|||||||
# DataFlashBoot
|
# DataFlashBoot
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
DATAFLASHBOOT_VERSION:=1.05
|
|
||||||
DATAFLASHBOOT_NAME:=DataflashBoot-$(DATAFLASHBOOT_VERSION)
|
|
||||||
DATAFLASHBOOT_SITE:=ftp://www.at91.com/pub/buildroot/
|
|
||||||
DATAFLASHBOOT_SOURCE:=$(DATAFLASHBOOT_NAME).tar.bz2
|
|
||||||
DATAFLASHBOOT_DIR:=$(BUILD_DIR)/at91dataflashboot-$(DATAFLASHBOOT_VERSION)
|
|
||||||
DATAFLASHBOOT_BINARY:=$(DATAFLASHBOOT_NAME).bin
|
|
||||||
|
|
||||||
$(DL_DIR)/$(DATAFLASHBOOT_SOURCE):
|
AT91DATAFLASHBOOT_VERSION = 1.05
|
||||||
$(call DOWNLOAD,$(DATAFLASHBOOT_SITE),$(DATAFLASHBOOT_SOURCE))
|
AT91DATAFLASHBOOT_SOURCE = DataflashBoot-$(AT91DATAFLASHBOOT_VERSION).tar.bz2
|
||||||
|
AT91DATAFLASHBOOT_SITE = ftp://www.at91.com/pub/buildroot/
|
||||||
|
|
||||||
$(DATAFLASHBOOT_DIR)/.unpacked: $(DL_DIR)/$(DATAFLASHBOOT_SOURCE)
|
AT91DATAFLASHBOOT_INSTALL_TARGET = NO
|
||||||
mkdir -p $(@D)
|
AT91DATAFLASHBOOT_INSTALL_IMAGES = YES
|
||||||
$(BZCAT) $(DL_DIR)/$(DATAFLASHBOOT_SOURCE) | tar $(TAR_STRIP_COMPONENTS)=1 -C $(@D) $(TAR_OPTIONS) -
|
|
||||||
touch $@
|
|
||||||
|
|
||||||
$(DATAFLASHBOOT_DIR)/.patched: $(DATAFLASHBOOT_DIR)/.unpacked
|
define AT91DATAFLASHBOOT_BUILD_CMDS
|
||||||
toolchain/patch-kernel.sh $(@D) boot/at91dataflashboot \
|
make -C $(@D) CROSS_COMPILE=$(TARGET_CROSS)
|
||||||
at91dataflashboot-$(DATAFLASHBOOT_VERSION)-\*.patch
|
endef
|
||||||
touch $@
|
|
||||||
|
|
||||||
$(DATAFLASHBOOT_DIR)/$(DATAFLASHBOOT_BINARY): $(DATAFLASHBOOT_DIR)/.patched
|
define AT91DATAFLASHBOOT_INSTALL_IMAGES_CMDS
|
||||||
ls $(DATAFLASHBOOT_DIR)/.unpacked
|
cp $(@D)/DataflashBoot-$(AT91DATAFLASHBOOT_VERSION).bin $(BINARIES_DIR)
|
||||||
make -C $(DATAFLASHBOOT_DIR) CROSS_COMPILE=$(TARGET_CROSS)
|
endef
|
||||||
|
|
||||||
dataflashboot-clean:
|
$(eval $(call GENTARGETS,boot,at91dataflashboot))
|
||||||
make -C $(DATAFLASHBOOT_DIR) clean
|
|
||||||
|
|
||||||
dataflashboot-dirclean:
|
|
||||||
rm -rf $(DATAFLASHBOOT_DIR)
|
|
||||||
|
|
||||||
dataflash: $(DATAFLASHBOOT_DIR)/$(DATAFLASHBOOT_BINARY)
|
|
||||||
cp $(DATAFLASHBOOT_DIR)/$(DATAFLASHBOOT_BINARY) $(BINARIES_DIR)
|
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
# Toplevel Makefile options
|
# Toplevel Makefile options
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
ifeq ($(BR2_TARGET_DATAFLASHBOOT),y)
|
ifeq ($(BR2_TARGET_AT91DATAFLASHBOOT),y)
|
||||||
TARGETS+=dataflash
|
TARGETS+=at91dataflashboot
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user