1# Copyright (c) 2013 The Linux Foundation. All rights reserved.
2# allow for local directory containing source to be used
3
4LOCAL_SRC ?= $(TOPDIR)/qca/src/$(PKG_NAME)
5
6ifeq (exists, $(shell [ -d $(LOCAL_SRC) ] && echo exists))
7PKG_REV=$(shell cd $(LOCAL_SRC)/; git describe --dirty --long --always | sed 's/.*-g//g')
8PKG_VERSION:=g$(PKG_REV)
9PKG_SOURCE_URL:=
10PKG_UNPACK=mkdir -p $(PKG_BUILD_DIR); $(CP) $(LOCAL_SRC)/* $(PKG_BUILD_DIR)/
11endif
12