1 ################################################################################
5 ################################################################################
7 SAM_BA_SITE
= http
://www.atmel.com
/dyn
/resources
/prod_documents
9 SAM_BA_SOURCE
= sam-ba_
$(SAM_BA_VERSION
)_linux.zip
10 SAM_BA_LICENSE
= SAM-BA license
(sam-ba executable
), \
11 BSD-2c like
, BSD-4c
(TCL and applets code
)
12 SAM_BA_LICENSE_FILES
= doc
/license.txt tcl_lib
/boards.tcl \
13 applets
/sam4c
/libraries
/libchip_sam4c
/include/sam4c
/sam4c32e-1.h
15 define HOST_SAM_BA_EXTRACT_CMDS
16 $(UNZIP
) -d
$(BUILD_DIR
) $(DL_DIR
)/$(SAM_BA_SOURCE
)
17 mv
$(BUILD_DIR
)/sam-ba_cdc_linux
/* $(@D
)
18 rmdir
$(BUILD_DIR
)/sam-ba_cdc_linux
/
21 # Since it's a prebuilt application and it does not conform to the
22 # usual Unix hierarchy, we install it in $(HOST_DIR)/opt/sam-ba and
23 # then create a symbolic link from $(HOST_DIR)/usr/bin to the
24 # application binary, for easier usage.
26 define HOST_SAM_BA_INSTALL_CMDS
27 mkdir
-p
$(HOST_DIR
)/opt
/sam-ba
/
28 cp
-a
$(@D
)/* $(HOST_DIR
)/opt
/sam-ba
/
29 ln
-sf ..
/..
/opt
/sam-ba
/sam-ba
$(HOST_DIR
)/usr
/bin
/sam-ba
32 $(eval
$(host-generic-package
))