projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cmake: include/cmake.mk add CMAKE_BINARY_SUBDIR to allow out of source tree builds
[openwrt/openwrt.git]
/
include
/
rootfs.mk
diff --git
a/include/rootfs.mk
b/include/rootfs.mk
index 4b4482c2131bd3e6bc503aa50bee25bd6a69c635..f3ba33a2be03a5e7a09c0cee6b1f0bcf7b216dac 100644
(file)
--- a/
include/rootfs.mk
+++ b/
include/rootfs.mk
@@
-34,11
+34,12
@@
ifdef CONFIG_USE_MKLIBS
endif
# where to build (and put) .ipk packages
endif
# where to build (and put) .ipk packages
-
OPKG:
= \
+
opkg
= \
IPKG_NO_SCRIPT=1 \
IPKG_NO_SCRIPT=1 \
- IPKG_INSTROOT=$(TARGET_DIR) \
- $(XARGS) $(STAGING_DIR_HOST)/bin/opkg \
- --offline-root $(TARGET_DIR) \
+ IPKG_INSTROOT=$(1) \
+ TMPDIR=$(1)/tmp \
+ $(STAGING_DIR_HOST)/bin/opkg \
+ --offline-root $(1) \
--force-depends \
--force-overwrite \
--force-postinstall \
--force-depends \
--force-overwrite \
--force-postinstall \
@@
-47,6
+48,9
@@
OPKG:= \
--add-arch all:100 \
--add-arch $(if $(ARCH_PACKAGES),$(ARCH_PACKAGES),$(BOARD)):200
--add-arch all:100 \
--add-arch $(if $(ARCH_PACKAGES),$(ARCH_PACKAGES),$(BOARD)):200
+opkg_package_files = $(wildcard \
+ $(foreach dir,$(PACKAGE_SUBDIRS), \
+ $(foreach pkg,$(1), $(dir)/$(pkg)_*.ipk)))
define prepare_rootfs
@if [ -d $(TOPDIR)/files ]; then \
define prepare_rootfs
@if [ -d $(TOPDIR)/files ]; then \