mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 05:36:32 +00:00
added dev files in target option
This commit is contained in:
parent
77ec383076
commit
bc67ca29d3
@ -239,6 +239,13 @@ config BR2_HAVE_INFOPAGES
|
|||||||
If you say n here, your target will not contain any
|
If you say n here, your target will not contain any
|
||||||
infopage.
|
infopage.
|
||||||
|
|
||||||
|
config BR2_TARGET_DEV_FILES
|
||||||
|
bool "Development files in target filesystem"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Install headers and static libraries in the
|
||||||
|
target filesystem
|
||||||
|
|
||||||
source package/gnuconfig/Config.in
|
source package/gnuconfig/Config.in
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
17
Makefile
17
Makefile
@ -245,7 +245,7 @@ include package/*/*.mk
|
|||||||
# target stuff is last so it can override anything else
|
# target stuff is last so it can override anything else
|
||||||
include target/Makefile.in
|
include target/Makefile.in
|
||||||
|
|
||||||
TARGETS+=erase-fakeroots
|
TARGETS+=erase-fakeroots target-devfiles
|
||||||
|
|
||||||
TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
|
TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
|
||||||
TARGETS_SOURCE:=$(patsubst %,%-source,$(TARGETS) $(BASE_TARGETS))
|
TARGETS_SOURCE:=$(patsubst %,%-source,$(TARGETS) $(BASE_TARGETS))
|
||||||
@ -317,6 +317,21 @@ $(TARGET_DIR): $(PROJECT_BUILD_DIR)/.root
|
|||||||
erase-fakeroots:
|
erase-fakeroots:
|
||||||
rm -f $(PROJECT_BUILD_DIR)/.fakeroot*
|
rm -f $(PROJECT_BUILD_DIR)/.fakeroot*
|
||||||
|
|
||||||
|
target-devfiles:
|
||||||
|
ifeq ($(strip $(BR2_TARGET_DEV_FILES)),y)
|
||||||
|
cp -a $(STAGING_DIR)/usr/include $(TARGET_DIR)/usr
|
||||||
|
cp $(STAGING_DIR)/usr/lib/*.a $(TARGET_DIR)/usr/lib
|
||||||
|
cp $(STAGING_DIR)/lib/*.a $(TARGET_DIR)/lib
|
||||||
|
cp $(STAGING_DIR)/usr/lib/*.la $(TARGET_DIR)/usr/lib
|
||||||
|
cp $(STAGING_DIR)/lib/*.la $(TARGET_DIR)/lib
|
||||||
|
else
|
||||||
|
rm -rf $(TARGET_DIR)/usr/include
|
||||||
|
find $(TARGET_DIR)/usr/lib -name '*.a' -delete
|
||||||
|
find $(TARGET_DIR)/lib -name '*.a' -delete
|
||||||
|
find $(TARGET_DIR)/usr/lib -name '*.la' -delete
|
||||||
|
find $(TARGET_DIR)/lib -name '*.la' -delete
|
||||||
|
endif
|
||||||
|
|
||||||
source: $(TARGETS_SOURCE) $(HOST_SOURCE)
|
source: $(TARGETS_SOURCE) $(HOST_SOURCE)
|
||||||
|
|
||||||
_source-check:
|
_source-check:
|
||||||
|
@ -230,10 +230,6 @@ $(BUILD_DIR)/%/.stamp_target_installed:
|
|||||||
$(if $(BR2_HAVE_INCLUDES),,for d in include; do \
|
$(if $(BR2_HAVE_INCLUDES),,for d in include; do \
|
||||||
rm -rf $(TARGET_DIR)/$$d $(TARGET_DIR)/usr/$$d; \
|
rm -rf $(TARGET_DIR)/$$d $(TARGET_DIR)/usr/$$d; \
|
||||||
done)
|
done)
|
||||||
find $(TARGET_DIR) -name '*.la' -delete
|
|
||||||
find $(TARGET_DIR)/lib -name '*.a' -delete
|
|
||||||
find $(TARGET_DIR)/usr/lib -name '*.a' -delete
|
|
||||||
|
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(BUILD_DIR)/%/.stamp_cleaned:
|
$(BUILD_DIR)/%/.stamp_cleaned:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user