summaryrefslogtreecommitdiff
path: root/package/openocd/Makefile
blob: 689df4011c7728621612cbb5e30fb73743a9d98d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		openocd
PKG_VERSION:=		0.11.0
PKG_RELEASE:=		1
PKG_HASH:=		43a3ce734aff1d3706ad87793a9f3a5371cb0e357f0ffd0a151656b06b3d1e7d
PKG_DESCR:=		jtag flash and debugging utility
PKG_SECTION:=		dev/tools
HOST_BUILDDEP:=		libusb-host
PKG_URL:=		http://openocd.org/
PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=openocd/}

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.bz2

PKG_CFLINE_OPENOCD:=	depends on ADK_HOST_ONLY

include $(ADK_TOPDIR)/mk/host.mk
include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call HOST_template,OPENOCD,openocd,$(PKG_VERSION)-${PKG_RELEASE}))

HOST_STYLE:=		auto
HOST_CFLAGS+=		-I$(STAGING_HOST_DIR)/usr/include/libusb-1.0
HOST_CONFIGURE_ARGS+=	--with-jim-shared=no \
			--disable-shared

openocd-hostinstall:
	cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
		${HOST_FAKE_FLAGS} ${HOST_INSTALL_TARGET} $(MAKE_TRACE)

include ${ADK_TOPDIR}/mk/host-bottom.mk
include ${ADK_TOPDIR}/mk/pkg-bottom.mk