Commit a23c0e59 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Peter Korsgaard
Browse files

sam-ba: new package with host variant only



sam-ba is a tool needed to reprogram AT91-based systems using an USB
connection or a serial port connection.

[Peter: Add upstream URL]
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: default avatarLuca Ceresoli <luca@lucaceresoli.net>
Acked-by: default avatarThomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 2b81a500
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
menu "Host utilities"

source "package/openocd/Config.in.host"
source "package/sam-ba/Config.in.host"
source "package/uboot-tools/Config.in.host"

endmenu
+8 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_HOST_SAM_BA
	bool "host sam-ba"
	help
	  Atmel SAM-BA software provides an open set of tools for
	  programming the Atmel SAM3, SAM7 and SAM9 ARM-based
	  microcontrollers.

	  http://www.at91.com/linux4sam/bin/view/Linux4SAM/SoftwareTools
+22 −0
Original line number Diff line number Diff line
SAM_BA_SITE    = http://www.atmel.com/dyn/resources/prod_documents/
SAM_BA_VERSION = 2.10
SAM_BA_SOURCE  = sam-ba_$(SAM_BA_VERSION).zip

define HOST_SAM_BA_EXTRACT_CMDS
        unzip -d $(BUILD_DIR) $(DL_DIR)/$(SAM_BA_SOURCE)
        mv $(BUILD_DIR)/sam-ba_cdc_linux/* $(@D)
        rmdir $(BUILD_DIR)/sam-ba_cdc_linux/
endef

# Since it's a prebuilt application and it does not conform to the
# usual Unix hierarchy, we install it in $(HOST_DIR)/opt/sam-ba and
# then create a symbolic link from $(HOST_DIR)/usr/bin to the
# application binary, for easier usage.

define HOST_SAM_BA_INSTALL_CMDS
	mkdir -p $(HOST_DIR)/opt/sam-ba/
	cp -a $(@D)/* $(HOST_DIR)/opt/sam-ba/
	ln -s ../../opt/sam-ba/sam-ba $(HOST_DIR)/usr/bin/sam-ba
endef

$(eval $(call GENTARGETS,host))