Skip to content

Commit b41ed09

Browse files
Morse Micromorse-arienjudge
authored andcommitted
include: add scons.mk from packages feed.
smart-manager requires scons for compilation. Include the scons.mk helper from the packages feed to keep dependencies isolated to this feed.
1 parent c88341b commit b41ed09

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

include/scons.mk

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

0 commit comments

Comments
 (0)