15 lines
639 B
Makefile
15 lines
639 B
Makefile
# Copyright (c) 2013 The Linux Foundation. All rights reserved.
|
|
# allow for local directory containing source to be used
|
|
|
|
LOCAL_SRC ?= $(TOPDIR)/qca/src/$(PKG_NAME)
|
|
|
|
ifeq (exists, $(shell [ -d $(LOCAL_SRC) ] && echo exists))
|
|
#PKG_REV=$(shell cd $(LOCAL_SRC)/; git describe --dirty --long --always | sed 's/.*-g//g')
|
|
#PKG_VERSION:=g$(PKG_REV)
|
|
PKG_VERSION:=2.0
|
|
PKG_REV_DATE:=$(shell cd $(LOCAL_SRC); git log --format="%ci" -1 | sed 's/-\|:\| //g' | cut -b -14)
|
|
PKG_SOURCE_URL:=
|
|
PKG_UNPACK=mkdir -p $(PKG_BUILD_DIR); $(CP) $(LOCAL_SRC)/* $(PKG_BUILD_DIR)/
|
|
HOST_UNPACK=mkdir -p $(HOST_BUILD_DIR); $(CP) $(LOCAL_SRC)/* $(HOST_BUILD_DIR)/
|
|
endif
|