The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / 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.15
9 SAM_BA_SOURCE = sam-ba_$(SAM_BA_VERSION).zip
10 SAM_BA_LICENSE = BSD-like (partly binary-only)
11 SAM_BA_LICENSE_FILES = doc/readme.txt
12
13 define HOST_SAM_BA_EXTRACT_CMDS
14         $(UNZIP) -d $(BUILD_DIR) $(DL_DIR)/$(SAM_BA_SOURCE)
15         mv $(BUILD_DIR)/sam-ba_cdc_linux/* $(@D)
16         rmdir $(BUILD_DIR)/sam-ba_cdc_linux/
17 endef
18
19 # Since it's a prebuilt application and it does not conform to the
20 # usual Unix hierarchy, we install it in $(HOST_DIR)/opt/sam-ba and
21 # then create a symbolic link from $(HOST_DIR)/usr/bin to the
22 # application binary, for easier usage.
23
24 define HOST_SAM_BA_INSTALL_CMDS
25         mkdir -p $(HOST_DIR)/opt/sam-ba/
26         cp -a $(@D)/* $(HOST_DIR)/opt/sam-ba/
27         ln -sf ../../opt/sam-ba/sam-ba $(HOST_DIR)/usr/bin/sam-ba
28 endef
29
30 $(eval $(host-generic-package))