1 ################################################################################
5 ################################################################################
7 SAM_BA_SITE = http://www.atmel.com/dyn/resources/prod_documents
9 SAM_BA_SOURCE = sam-ba_$(SAM_BA_VERSION).zip
10 SAM_BA_PATCH = sam-ba_$(SAM_BA_VERSION)_patch5.gz
11 SAM_BA_LICENSE = BSD-like (partly binary-only)
12 SAM_BA_LICENSE_FILES = doc/readme.txt
14 define HOST_SAM_BA_EXTRACT_CMDS
15 unzip -d $(BUILD_DIR) $(DL_DIR)/$(SAM_BA_SOURCE)
16 mv $(BUILD_DIR)/sam-ba_cdc_cdc_linux/* $(@D)
17 rmdir $(BUILD_DIR)/sam-ba_cdc_cdc_linux/
20 # Since it's a prebuilt application and it does not conform to the
21 # usual Unix hierarchy, we install it in $(HOST_DIR)/opt/sam-ba and
22 # then create a symbolic link from $(HOST_DIR)/usr/bin to the
23 # application binary, for easier usage.
25 define HOST_SAM_BA_INSTALL_CMDS
26 mkdir -p $(HOST_DIR)/opt/sam-ba/
27 cp -a $(@D)/* $(HOST_DIR)/opt/sam-ba/
28 ln -sf ../../opt/sam-ba/sam-ba $(HOST_DIR)/usr/bin/sam-ba
31 $(eval $(host-generic-package))