File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Originally this scons.mk lived in the openwrt $INCLUDE_DIR
2+ # someone decided to move it into the packages feed.
3+ # While I would love to just include the Makefile from the packages
4+ # feed, I am aiming to avoid any cross-feed dependencies, so am
5+ # opting to just duplicate it here.
6+
7+ export PLATFORM =posix
8+
9+ SCONS_VARS = \
10+ CC="$(TARGET_CC_NOCACHE ) " \
11+ CXX="$(TARGET_CXX_NOCACHE ) " \
12+ CFLAGS="$(TARGET_CFLAGS ) $(EXTRA_CFLAGS ) " \
13+ CXXFLAGS="$(TARGET_CXXFLAGS ) $(EXTRA_CXXFLAGS ) " \
14+ CPPFLAGS="$(TARGET_CPPFLAGS ) $(EXTRA_CPPFLAGS ) " \
15+ LDFLAGS="$(TARGET_LDFLAGS ) $(EXTRA_LDFLAGS ) " \
16+ DESTDIR="$(PKG_INSTALL_DIR ) "
17+
18+ define Build/Configure/Default
19+ (cd $(PKG_BUILD_DIR ) ; \
20+ $(SCONS_VARS ) \
21+ scons \
22+ prefix=/usr \
23+ $(SCONS_OPTIONS ) \
24+ install \
25+ )
26+ endef
27+
28+ define Build/Compile
29+ endef
You can’t perform that action at this time.
0 commit comments