mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
Add a PyMod template for python related modules
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8522 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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 $@
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user