mirror of https://github.com/hak5/openwrt-owl.git
parent
3c11423892
commit
39cbeec7b2
|
@ -128,6 +128,15 @@ define Build/Compile
|
||||||
$(call Build/Compile/Default,)
|
$(call Build/Compile/Default,)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/Compile/PyMod
|
||||||
|
cd $(PKG_BUILD_DIR); \
|
||||||
|
$(1) \
|
||||||
|
CFLAGS='-I$(STAGING_DIR)/usr/include' \
|
||||||
|
LDFLAGS='$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib' \
|
||||||
|
$(STAGING_DIR)/usr/bin/hostpython ./setup.py $(2) \
|
||||||
|
--prefix=$(PKG_INSTALL_DIR)/usr
|
||||||
|
endef
|
||||||
|
|
||||||
$(PACKAGE_DIR):
|
$(PACKAGE_DIR):
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue