]> Git Repo - buildroot-mgba.git/blob - package/sam-ba/sam-ba.mk
c03fcc4d45f38e8eae16386d48a0d977ab637fb7
[buildroot-mgba.git] / package / sam-ba / sam-ba.mk
1 ################################################################################
2 #
3 # sam-ba
4 #
5 ################################################################################
6
7 SAM_BA_SITE = http://www.atmel.com/dyn/resources/prod_documents
8 SAM_BA_VERSION = 2.12
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
13
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/
18 endef
19
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.
24
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
29 endef
30
31 $(eval $(host-generic-package))
This page took 0.016179 seconds and 2 git commands to generate.