mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 07:57:43 +00:00
- whitespace cleanup (Cristian Ionescu-Idbohrn)
This commit is contained in:
parent
28b852d9c3
commit
00b8456cd5
@ -76,7 +76,7 @@
|
|||||||
# in your package makefile:
|
# in your package makefile:
|
||||||
#
|
#
|
||||||
# | $(FOO_TARGET_INSTALL):
|
# | $(FOO_TARGET_INSTALL):
|
||||||
# | touch $@
|
# | touch $@
|
||||||
#
|
#
|
||||||
## The following variables are defined automatically and can be used in
|
## The following variables are defined automatically and can be used in
|
||||||
## overriden targets:
|
## overriden targets:
|
||||||
@ -90,7 +90,7 @@
|
|||||||
# MESSAGE
|
# MESSAGE
|
||||||
# macro that outputs a pretty message to stdout, e.g. use
|
# macro that outputs a pretty message to stdout, e.g. use
|
||||||
# $(call MESSAGE,"Hello World")
|
# $(call MESSAGE,"Hello World")
|
||||||
# in a target.
|
# in a target.
|
||||||
#
|
#
|
||||||
# Caveats:
|
# Caveats:
|
||||||
# - the 'eval' line (final line in the example) must be placed
|
# - the 'eval' line (final line in the example) must be placed
|
||||||
@ -110,7 +110,7 @@ INFLATE.tgz = $(ZCAT)
|
|||||||
INFLATE.tar = cat
|
INFLATE.tar = cat
|
||||||
|
|
||||||
# MESSAGE Macro -- display a message in bold type
|
# MESSAGE Macro -- display a message in bold type
|
||||||
MESSAGE = @echo $(TERM_BOLD) ; \
|
MESSAGE = @echo $(TERM_BOLD); \
|
||||||
echo ">>> $($(PKG)_NAME) $($(PKG)_VERSION) $(1)"; \
|
echo ">>> $($(PKG)_NAME) $($(PKG)_VERSION) $(1)"; \
|
||||||
echo $(TERM_RESET)
|
echo $(TERM_RESET)
|
||||||
TERM_BOLD = #$(shell tput bold)
|
TERM_BOLD = #$(shell tput bold)
|
||||||
@ -152,14 +152,14 @@ $(BUILD_DIR)/%/.stamp_patched: NAMEVER = $($(PKG)_NAME)-$($(PKG)_VERSION)
|
|||||||
$(BUILD_DIR)/%/.stamp_patched:
|
$(BUILD_DIR)/%/.stamp_patched:
|
||||||
$(call MESSAGE,"Patching")
|
$(call MESSAGE,"Patching")
|
||||||
$(if $($(PKG)_PATCH),toolchain/patch-kernel.sh $(@D) $(DL_DIR) $($(PKG)_PATCH))
|
$(if $($(PKG)_PATCH),toolchain/patch-kernel.sh $(@D) $(DL_DIR) $($(PKG)_PATCH))
|
||||||
$(Q)(\
|
$(Q)( \
|
||||||
if test -d $($(PKG)_DIR_PREFIX)/$($(PKG)_NAME) ; then \
|
if test -d $($(PKG)_DIR_PREFIX)/$($(PKG)_NAME); then \
|
||||||
if test "$(wildcard $($(PKG)_DIR_PREFIX)/$($(PKG)_NAME)/$(NAMEVER)*.patch)" ; then \
|
if test "$(wildcard $($(PKG)_DIR_PREFIX)/$($(PKG)_NAME)/$(NAMEVER)*.patch)"; then \
|
||||||
toolchain/patch-kernel.sh $(@D) $($(PKG)_DIR_PREFIX)/$($(PKG)_NAME) $(NAMEVER)\*.patch || exit 1 ; \
|
toolchain/patch-kernel.sh $(@D) $($(PKG)_DIR_PREFIX)/$($(PKG)_NAME) $(NAMEVER)\*.patch || exit 1; \
|
||||||
else \
|
else \
|
||||||
toolchain/patch-kernel.sh $(@D) $($(PKG)_DIR_PREFIX)/$($(PKG)_NAME) $($(PKG)_NAME)\*.patch || exit 1 ; \
|
toolchain/patch-kernel.sh $(@D) $($(PKG)_DIR_PREFIX)/$($(PKG)_NAME) $($(PKG)_NAME)\*.patch || exit 1; \
|
||||||
if test -d package/$($(PKG)_DIR_PREFIX)/$($(PKG)_NAME)/$(NAMEVER) ; then \
|
if test -d package/$($(PKG)_DIR_PREFIX)/$($(PKG)_NAME)/$(NAMEVER); then \
|
||||||
toolchain/patch-kernel.sh $(@D) $($(PKG)_DIR_PREFIX)/$($(PKG)_NAME)/$(NAMEVER) \*.patch || exit 1 ; \
|
toolchain/patch-kernel.sh $(@D) $($(PKG)_DIR_PREFIX)/$($(PKG)_NAME)/$(NAMEVER) \*.patch || exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
fi; \
|
fi; \
|
||||||
fi; \
|
fi; \
|
||||||
@ -168,7 +168,7 @@ ifeq ($(strip $(BR2_UPDATE_CONFIG)),y)
|
|||||||
$(Q)(for file in config.guess config.sub; do \
|
$(Q)(for file in config.guess config.sub; do \
|
||||||
for i in $$(find $(@D) -name $$file); do \
|
for i in $$(find $(@D) -name $$file); do \
|
||||||
cp package/gnuconfig/$$file $$i; \
|
cp package/gnuconfig/$$file $$i; \
|
||||||
done;\
|
done; \
|
||||||
done)
|
done)
|
||||||
endif
|
endif
|
||||||
$(Q)touch $@
|
$(Q)touch $@
|
||||||
@ -182,12 +182,10 @@ $(BUILD_DIR)/%/.stamp_autoconfigured:
|
|||||||
# Configuring
|
# Configuring
|
||||||
$(BUILD_DIR)/%/.stamp_configured:
|
$(BUILD_DIR)/%/.stamp_configured:
|
||||||
$(call MESSAGE,"Configuring")
|
$(call MESSAGE,"Configuring")
|
||||||
$(Q)if test "$($(PKG)_AUTORECONF)" = "YES" ; then \
|
$(Q)if test "$($(PKG)_AUTORECONF)" = "YES"; then \
|
||||||
cd $(@D)/$($(PKG)_SUBDIR) && \
|
cd $(@D)/$($(PKG)_SUBDIR) && $(AUTORECONF); \
|
||||||
$(AUTORECONF) ; \
|
|
||||||
fi
|
fi
|
||||||
cd $(@D)/$($(PKG)_SUBDIR) && \
|
cd $(@D)/$($(PKG)_SUBDIR) && rm -f config.cache && \
|
||||||
rm -f config.cache && \
|
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
$(TARGET_CONFIGURE_ARGS) \
|
$(TARGET_CONFIGURE_ARGS) \
|
||||||
$($(PKG)_CONF_ENV) \
|
$($(PKG)_CONF_ENV) \
|
||||||
@ -212,9 +210,9 @@ $(BUILD_DIR)/%/.stamp_staging_installed:
|
|||||||
$(call MESSAGE,'Installing to host (staging directory)')
|
$(call MESSAGE,'Installing to host (staging directory)')
|
||||||
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_INSTALL_STAGING_OPT) -C $(@D)/$($(PKG)_SUBDIR)
|
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_INSTALL_STAGING_OPT) -C $(@D)/$($(PKG)_SUBDIR)
|
||||||
# toolchain/replace.sh $(STAGING_DIR)/usr/lib ".*\.la" "\(['= ]\)/usr" "\\1$(STAGING_DIR)/usr"
|
# toolchain/replace.sh $(STAGING_DIR)/usr/lib ".*\.la" "\(['= ]\)/usr" "\\1$(STAGING_DIR)/usr"
|
||||||
for i in $$(find $(STAGING_DIR)/usr/lib/ -name "*.la") ; do \
|
for i in $$(find $(STAGING_DIR)/usr/lib/ -name "*.la"); do \
|
||||||
cp $$i $$i~ ; \
|
cp $$i $$i~; \
|
||||||
$(SED) "s:\(['= ]\)/usr:\\1$(STAGING_DIR)/usr:" $$i ; \
|
$(SED) "s:\(['= ]\)/usr:\\1$(STAGING_DIR)/usr:" $$i; \
|
||||||
done
|
done
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
@ -222,14 +220,14 @@ $(BUILD_DIR)/%/.stamp_staging_installed:
|
|||||||
$(BUILD_DIR)/%/.stamp_target_installed:
|
$(BUILD_DIR)/%/.stamp_target_installed:
|
||||||
$(call MESSAGE,"Installing to target")
|
$(call MESSAGE,"Installing to target")
|
||||||
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_INSTALL_TARGET_OPT) -C $(@D)/$($(PKG)_SUBDIR)
|
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_INSTALL_TARGET_OPT) -C $(@D)/$($(PKG)_SUBDIR)
|
||||||
$(if $(BR2_HAVE_MANPAGES),,for d in man ; do \
|
$(if $(BR2_HAVE_MANPAGES),,for d in man; do \
|
||||||
rm -rf $(TARGET_DIR)/$$d $(TARGET_DIR)/usr/$$d ; \
|
rm -rf $(TARGET_DIR)/$$d $(TARGET_DIR)/usr/$$d; \
|
||||||
done)
|
done)
|
||||||
$(if $(BR2_HAVE_INFOPAGES),,for d in info share/info ; do \
|
$(if $(BR2_HAVE_INFOPAGES),,for d in info share/info; do \
|
||||||
rm -rf $(TARGET_DIR)/$$d $(TARGET_DIR)/usr/$$d ; \
|
rm -rf $(TARGET_DIR)/$$d $(TARGET_DIR)/usr/$$d; \
|
||||||
done)
|
done)
|
||||||
$(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) -name '*.la' -delete
|
||||||
touch $@
|
touch $@
|
||||||
@ -304,8 +302,8 @@ $(2)_HOOK_POST_BUILD = $$($(2)_DIR)/.stamp_hook_post_build
|
|||||||
$(2)_HOOK_POST_INSTALL = $$($(2)_DIR)/.stamp_hook_post_install
|
$(2)_HOOK_POST_INSTALL = $$($(2)_DIR)/.stamp_hook_post_install
|
||||||
|
|
||||||
# human-friendly targets and target sequencing
|
# human-friendly targets and target sequencing
|
||||||
$(1): $(1)-install
|
$(1): $(1)-install
|
||||||
$(1)-install: $(1)-install-staging $(1)-install-target \
|
$(1)-install: $(1)-install-staging $(1)-install-target \
|
||||||
$$($(2)_HOOK_POST_INSTALL)
|
$$($(2)_HOOK_POST_INSTALL)
|
||||||
|
|
||||||
ifeq ($$($(2)_INSTALL_TARGET),YES)
|
ifeq ($$($(2)_INSTALL_TARGET),YES)
|
||||||
@ -342,7 +340,7 @@ $(1)-depends: $(1)-source $$($(2)_DEPENDENCIES)
|
|||||||
$(1)-source: $$($(2)_TARGET_SOURCE)
|
$(1)-source: $$($(2)_TARGET_SOURCE)
|
||||||
|
|
||||||
# non-build targets
|
# non-build targets
|
||||||
$(1)-uninstall: $(1)-configure $$($(2)_TARGET_UNINSTALL)
|
$(1)-uninstall: $(1)-configure $$($(2)_TARGET_UNINSTALL)
|
||||||
|
|
||||||
$(1)-clean: $$($(2)_TARGET_CLEAN)
|
$(1)-clean: $$($(2)_TARGET_CLEAN)
|
||||||
|
|
||||||
@ -377,4 +375,3 @@ endif
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
# :mode=makefile:
|
# :mode=makefile:
|
||||||
|
|
||||||
|
@ -53,4 +53,3 @@ vendor-dbg:
|
|||||||
@echo VENDOR_UCLIBC_RELEASE=$(BR2_VENDOR_UCLIBC_RELEASE)
|
@echo VENDOR_UCLIBC_RELEASE=$(BR2_VENDOR_UCLIBC_RELEASE)
|
||||||
@echo VENDOR_GDB_RELEASE=$(BR2_VENDOR_GDB_RELEASE)
|
@echo VENDOR_GDB_RELEASE=$(BR2_VENDOR_GDB_RELEASE)
|
||||||
@echo VENDOR_PATCH_DIR=$(BR2_VENDOR_PATCH_DIR)
|
@echo VENDOR_PATCH_DIR=$(BR2_VENDOR_PATCH_DIR)
|
||||||
|
|
||||||
|
@ -358,7 +358,7 @@ cross_compiler gcc: gcc-config $(GCC_BUILD_DIR2)/.installed $(GCC_BUILD_DIR2)/.l
|
|||||||
|
|
||||||
gcc-source: $(DL_DIR)/$(GCC_SOURCE)
|
gcc-source: $(DL_DIR)/$(GCC_SOURCE)
|
||||||
|
|
||||||
gcc-config:uclibc-configured binutils gcc_initial $(LIBFLOAT_TARGET) \
|
gcc-config: uclibc-configured binutils gcc_initial $(LIBFLOAT_TARGET) \
|
||||||
uclibc $(GCC_BUILD_DIR2)/.configured
|
uclibc $(GCC_BUILD_DIR2)/.configured
|
||||||
|
|
||||||
gcc-clean:
|
gcc-clean:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user