Browse Source

- minor reworks

master
vanhofen 4 years ago
parent
commit
0dda94124a
  1. 2
      Makefile
  2. 2
      config.example
  3. 14
      make/buildsystem-bootstrap.mk
  4. 176
      make/buildsystem-helpers.mk
  5. 72
      make/buildsystem-prerequisites.mk
  6. 108
      make/buildsystem-update.mk
  7. 50
      make/buildsystem-utils.mk
  8. 50
      make/crosstool.mk
  9. 314
      make/environment-build.mk
  10. 12
      make/environment-image.mk
  11. 124
      make/environment-linux.mk
  12. 6
      make/environment-update.mk
  13. 2
      make/flash-images.mk
  14. 44
      make/flash-updates.mk
  15. 326
      make/host-tools.mk
  16. 40
      make/linux-drivers.mk
  17. 76
      make/linux-kernel.mk
  18. 16
      make/ni.mk
  19. 450
      make/target-blobs.mk
  20. 84
      make/target-development.mk
  21. 52
      make/target-ffmpeg-coolstream.mk
  22. 33
      make/target-ffmpeg.mk
  23. 45
      make/target-libs-static.mk
  24. 156
      make/target-libs-unused.mk
  25. 1126
      make/target-libs.mk
  26. 131
      make/target-lua.mk
  27. 185
      make/target-neutrino-plugins.mk
  28. 70
      make/target-neutrino.mk
  29. 26
      make/target-rootfs.mk
  30. 229
      make/target-tools-unused.mk
  31. 1582
      make/target-tools.mk
  32. 0
      package/alsa-lib/patches/0000-alsa_pc_in.patch
  33. 0
      package/alsa-lib/patches/0001-Don-t-use-fork-on-noMMU-platforms.patch
  34. 0
      package/autofs/patches/0000-force-STRIP-to-emtpy.patch
  35. 0
      package/base-passwd/patches/0000-align-root.patch
  36. 0
      package/base-passwd/patches/0005-disable-docs.patch
  37. 0
      package/bash/patches/bash50-001
  38. 0
      package/bash/patches/bash50-002
  39. 0
      package/bash/patches/bash50-003
  40. 0
      package/bash/patches/bash50-004
  41. 0
      package/bash/patches/bash50-005
  42. 0
      package/bash/patches/bash50-006
  43. 0
      package/bash/patches/bash50-007
  44. 0
      package/bash/patches/bash50-008
  45. 0
      package/bash/patches/bash50-009
  46. 0
      package/bash/patches/bash50-010
  47. 0
      package/bash/patches/bash50-011
  48. 0
      package/bash/patches/bash50-012
  49. 0
      package/bash/patches/bash50-013
  50. 0
      package/bash/patches/bash50-014
  51. 0
      package/bash/patches/bash50-015
  52. 0
      package/bash/patches/bash50-016
  53. 0
      package/bash/patches/bash50-017
  54. 0
      package/busybox/files/busybox-minimal.config
  55. 0
      package/busybox/patches/busybox-fix-config-header.diff
  56. 0
      package/busybox/patches/busybox-fix-partition-size.patch
  57. 0
      package/busybox/patches/busybox-insmod-hack.patch
  58. 0
      package/busybox/patches/busybox-mount_single_uuid.patch
  59. 0
      package/bzip2/patches/bzip2.patch
  60. 0
      package/cairo/patches/cairo-get_bitmap_surface.diff
  61. 0
      package/coreutils/patches/coreutils-fix-build.patch
  62. 0
      package/crosstool-ng/files/ct-ng-armbox.config
  63. 0
      package/crosstool-ng/files/ct-ng-coolstream-hd1.config
  64. 0
      package/crosstool-ng/files/ct-ng-coolstream-hd2.config
  65. 0
      package/crosstool-ng/files/ct-ng-mipsbox.config
  66. 0
      package/crosstool-ng/files/ct-ng-uClibc-1.0.24.config
  67. 0
      package/crosstool-ng/patches/crosstool-ng-bash-version.patch
  68. 0
      package/crosstool-ng/patches/gcc/999-gcc-6.3-backport-fix-of-check-for-empty-string-in-ubsan.c.patch
  69. 0
      package/djmount/patches/djmount-fix-hang-with-asset-upnp.patch
  70. 0
      package/djmount/patches/djmount-fix-incorrect-range-when-retrieving-content-via-HTTP.patch
  71. 0
      package/djmount/patches/djmount-fix-new-autotools.diff
  72. 0
      package/djmount/patches/djmount-fix-newer-gcc.patch
  73. 0
      package/djmount/patches/djmount-fixed-crash-when-using-UTF-8-charset.patch
  74. 0
      package/djmount/patches/djmount-fixed-crash.patch
  75. 0
      package/djmount/patches/djmount-support-fstab-mounting.diff
  76. 0
      package/djmount/patches/djmount-support-seeking-in-large-2gb-files.patch
  77. 0
      package/dosfstools/patches/switch-to-AC_CHECK_LIB-for-iconv-library-linking.patch
  78. 0
      package/dvb-apps/patches/0001-Fix-generate-keynames.patch
  79. 0
      package/dvb-apps/patches/0001-dvbdate-Remove-Obsoleted-stime-API-calls.patch
  80. 0
      package/dvb-apps/patches/0003-handle-static-shared-only-build.patch
  81. 0
      package/dvb-apps/patches/0004-Makefile-remove-test.patch
  82. 0
      package/dvb-apps/patches/0005-libucsi-optimization-removal.patch
  83. 0
      package/dvb-apps/patches/0006-CA_SET_PID.patch
  84. 0
      package/expat/patches/expat-libtool-tag.patch
  85. 0
      package/ext4_utils/patches/ext4_utils.mk
  86. 0
      package/fbshot/patches/fbshot-32bit_cs_fb.diff
  87. 0
      package/fbshot/patches/fbshot_cs_hd2.diff
  88. 0
      package/ffmpeg/patches/4_02_fix_mpegts.patch
  89. 0
      package/ffmpeg/patches/4_03_allow_to_choose_rtmp_impl_at_runtime.patch
  90. 0
      package/ffmpeg/patches/4_04_hls_replace_key_uri.patch
  91. 0
      package/ffmpeg/patches/4_06_optimize_aac.patch
  92. 0
      package/ffmpeg/patches/4_07_increase_buffer_size.patch
  93. 0
      package/ffmpeg/patches/4_08_recheck_discard_flags.patch
  94. 0
      package/ffmpeg/patches/4_09_ffmpeg_fix_edit_list_parsing.patch
  95. 0
      package/ffmpeg/patches/4_10_rtsp_patch
  96. 0
      package/ffmpeg/patches/4_11_dxva2_patch
  97. 0
      package/ffmpeg/patches/4_A02-corrupt-h264-frames.patch
  98. 0
      package/ffmpeg/patches/4_A11-FFmpeg-devel-amfenc-Add-support-for-pict_type-field.patch
  99. 0
      package/ffmpeg/patches/4_mips64_cpu_detection.patch
  100. 0
      package/freetype2/patches/freetype2-config.patch

2
Makefile

@ -135,7 +135,7 @@ help:
@echo " * make image - Builds our beautiful NI-Image" @echo " * make image - Builds our beautiful NI-Image"
@echo "" @echo ""
@echo "Later, you might find those useful:" @echo "Later, you might find those useful:"
@echo " * make update-all - Update buildsystem and all sources" @echo " * make update - Update buildsystem and all sources"
@echo "" @echo ""
@echo "Cleanup:" @echo "Cleanup:"
@echo " * make clean - Clean up from previous build an prepare for a new one" @echo " * make clean - Clean up from previous build an prepare for a new one"

2
config.example

@ -51,7 +51,7 @@ MAINTAINER = $(shell whoami)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# use lastest VU+ drivers # use lastest VU+ drivers
#VUPLUS-DRIVERS_LATEST = yes #VUPLUS_DRIVERS_LATEST = yes
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------

14
make/buildsystem-bootstrap.mk

@ -33,7 +33,7 @@ bootstrap: $(BOOTSTRAP)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
skeleton: | $(TARGET_DIR) skeleton: | $(TARGET_DIR)
$(INSTALL_COPY) --remove-destination $(SKEL-ROOT)/. $(TARGET_DIR)/ $(INSTALL_COPY) --remove-destination $(SKEL_ROOT)/. $(TARGET_DIR)/
$(SED) 's|%(BOOT_PARTITION)|$(BOOT_PARTITION)|' $(TARGET_sysconfdir)/mdev.conf $(SED) 's|%(BOOT_PARTITION)|$(BOOT_PARTITION)|' $(TARGET_sysconfdir)/mdev.conf
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -115,17 +115,17 @@ var-update: $(TARGET_localstatedir)/update
$(TARGET_localstatedir)/update: | $(TARGET_DIR) $(TARGET_localstatedir)/update: | $(TARGET_DIR)
mkdir -p $(@) mkdir -p $(@)
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1)) ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1))
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI-DRIVERS-BIN)/$(DRIVERS-BIN_DIR)/zImage $(@) $(INSTALL_DATA) $(SOURCE_DIR)/$(NI_DRIVERS_BIN)/$(DRIVERS_BIN_DIR)/zImage $(@)
else ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd2)) else ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd2))
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI-DRIVERS-BIN)/$(DRIVERS-BIN_DIR)/vmlinux.ub.gz $(@) $(INSTALL_DATA) $(SOURCE_DIR)/$(NI_DRIVERS_BIN)/$(DRIVERS_BIN_DIR)/vmlinux.ub.gz $(@)
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI-DRIVERS-BIN)/$(DRIVERS-BIN_DIR)/uldr.bin $(@) $(INSTALL_DATA) $(SOURCE_DIR)/$(NI_DRIVERS_BIN)/$(DRIVERS_BIN_DIR)/uldr.bin $(@)
ifeq ($(BOXMODEL),kronos_v2) ifeq ($(BOXMODEL),kronos_v2)
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI-DRIVERS-BIN)/$(DRIVERS-BIN_DIR)/u-boot.bin.kronos_v2 $(@)/u-boot.bin $(INSTALL_DATA) $(SOURCE_DIR)/$(NI_DRIVERS_BIN)/$(DRIVERS_BIN_DIR)/u-boot.bin.kronos_v2 $(@)/u-boot.bin
else else
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI-DRIVERS-BIN)/$(DRIVERS-BIN_DIR)/u-boot.bin $(@) $(INSTALL_DATA) $(SOURCE_DIR)/$(NI_DRIVERS_BIN)/$(DRIVERS_BIN_DIR)/u-boot.bin $(@)
endif endif
endif endif
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI-DRIVERS-BIN)/$(DRIVERS-BIN_DIR)/stb_update.data $(@) $(INSTALL_DATA) $(SOURCE_DIR)/$(NI_DRIVERS_BIN)/$(DRIVERS_BIN_DIR)/stb_update.data $(@)
endif endif

176
make/buildsystem-helpers.mk

@ -3,6 +3,43 @@
# #
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# download archives into download directory
DOWNLOAD = wget --no-check-certificate -t3 -T60 -c -P $(DL_DIR)
# unpack archives into build directory
UNTAR = tar -C $(BUILD_DIR) -xf $(DL_DIR)
UNZIP = unzip -d $(BUILD_DIR) -o $(DL_DIR)
# clean up
REMOVE = rm -rf $(BUILD_DIR)
# build helper variables
CD = set -e; cd
CHDIR = $(CD) $(BUILD_DIR)
MKDIR = mkdir -p $(BUILD_DIR)
CPDIR = cp -a -t $(BUILD_DIR) $(DL_DIR)
#TOUCH = @touch $(DEPS_DIR)/$(@)
TOUCH = @touch $(if $(findstring host-,$(@)),$(HOST_DEPS_DIR),$(DEPS_DIR))/$(@)
SED = $(shell which sed || type -p sed) -i -e
INSTALL = install
INSTALL_DATA = $(INSTALL) -m 0644
INSTALL_EXEC = $(INSTALL) -m 0755
INSTALL_COPY = cp -a
define INSTALL_EXIST # (source, dest)
if [ -d $(dir $(1)) ]; then \
$(INSTALL) -d $(2); \
$(INSTALL_COPY) $(1) $(2); \
fi
endef
GET-GIT-ARCHIVE = $(HELPERS_DIR)/get-git-archive.sh
GET-GIT-SOURCE = $(HELPERS_DIR)/get-git-source.sh
GET-SVN-SOURCE = $(HELPERS_DIR)/get-svn-source.sh
UPDATE-RC.D = $(HELPERS_DIR)/update-rc.d -r $(TARGET_DIR)
# -----------------------------------------------------------------------------
# execute local scripts # execute local scripts
define local-script define local-script
@if [ -x $(LOCAL_DIR)/scripts/$(1) ]; then \ @if [ -x $(LOCAL_DIR)/scripts/$(1) ]; then \
@ -16,22 +53,22 @@ endef
define apply_patches define apply_patches
l=$(strip $(2)); test -z $$l && l=1; \ l=$(strip $(2)); test -z $$l && l=1; \
for i in $(1); do \ for i in $(1); do \
if [ -e $$i -o -e $(PATCHES)/$$i ]; then \ if [ -e $$i -o -e $(PKG_PATCHES_DIR)/$$i ]; then \
if [ -d $$i ]; then \ if [ -d $$i ]; then \
for p in $$i/*; do \ for p in $$i/*; do \
echo -e "$(TERM_YELLOW)Applying $${p#$(PATCHES)/}$(TERM_NORMAL)"; \ echo -e "$(TERM_YELLOW)Applying $${p#$(PKG_PATCHES_DIR)/}$(TERM_NORMAL)"; \
if [ $${p:0:1} == "/" ]; then \ if [ $${p:0:1} == "/" ]; then \
patch -p$$l -i $$p; \ patch -p$$l -i $$p; \
else \ else \
patch -p$$l -i $(PATCHES)/$$p; \ patch -p$$l -i $(PKG_PATCHES_DIR)/$$p; \
fi; \ fi; \
done; \ done; \
else \ else \
echo -e "$(TERM_YELLOW)Applying $${i#$(PATCHES)/}$(TERM_NORMAL)"; \ echo -e "$(TERM_YELLOW)Applying $${i#$(PKG_PATCHES_DIR)/}$(TERM_NORMAL)"; \
if [ $${i:0:1} == "/" ]; then \ if [ $${i:0:1} == "/" ]; then \
patch -p$$l -i $$i; \ patch -p$$l -i $$i; \
else \ else \
patch -p$$l -i $(PATCHES)/$$i; \ patch -p$$l -i $(PKG_PATCHES_DIR)/$$i; \
fi; \ fi; \
fi; \ fi; \
fi; \ fi; \
@ -54,10 +91,10 @@ REWRITE_LIBTOOL_RULES = "s,^libdir=.*,libdir='$(1)',; \
REWRITE_LIBTOOL_TAG = rewritten=1 REWRITE_LIBTOOL_TAG = rewritten=1
define REWRITE_LIBTOOL # (libdir) define rewrite_libtool # (libdir)
for la in $$(find $(1) -name "*.la" -type f); do \ for la in $$(find $(1) -name "*.la" -type f); do \
if ! grep -q "$(REWRITE_LIBTOOL_TAG)" $${la}; then \ if ! grep -q "$(REWRITE_LIBTOOL_TAG)" $${la}; then \
echo -e "$(TERM_YELLOW)Rewriting $${la#$(TARGET_DIR)/}$(TERM_NORMAL)"; \ $(call MESSAGE,"Rewriting $${la#$(TARGET_DIR)/}"); \
$(SED) $(REWRITE_LIBTOOL_RULES) $${la}; \ $(SED) $(REWRITE_LIBTOOL_RULES) $${la}; \
echo -e "\n# Adapted to buildsystem\n$(REWRITE_LIBTOOL_TAG)" >> $${la}; \ echo -e "\n# Adapted to buildsystem\n$(REWRITE_LIBTOOL_TAG)" >> $${la}; \
fi; \ fi; \
@ -65,8 +102,8 @@ define REWRITE_LIBTOOL # (libdir)
endef endef
# rewrite libtool libraries automatically # rewrite libtool libraries automatically
REWRITE_LIBTOOL_LA = $(call REWRITE_LIBTOOL,$(TARGET_base_libdir)); \ REWRITE_LIBTOOL = $(foreach libdir,$(TARGET_base_libdir) $(TARGET_libdir),\
$(call REWRITE_LIBTOOL,$(TARGET_libdir)) $(call rewrite_libtool,$(libdir))$(sep))
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -102,120 +139,6 @@ endef
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
#
# $(1) = title
# $(2) = color
# 0 - Black
# 1 - Red
# 2 - Green
# 3 - Yellow
# 4 - Blue
# 5 - Magenta
# 6 - Cyan
# 7 - White
# $(3) = left|center|right
#
define draw_line
@ \
printf '%.0s-' {1..$(shell tput cols)}; \
if test "$(1)"; then \
cols=$(shell tput cols); \
length=$(shell echo $(1) | awk '{print length}'); \
case "$(3)" in \
*right) let indent="length + 1" ;; \
*center) let indent="cols - (cols - length) / 2" ;; \
*left|*) let indent="cols" ;; \
esac; \
tput cub $$indent; \
test "$(2)" && printf $$(tput setaf $(2)); \
printf '$(1)'; \
test "$(2)" && printf $$(tput sgr0); \
fi; \
echo
endef
# -----------------------------------------------------------------------------
archives-list:
@rm -f $(BUILD_DIR)/$(@)
@make -qp | grep --only-matching '^\$(DL_DIR).*:' | sed "s|:||g" > $(BUILD_DIR)/$(@)
DOCLEANUP ?= no
GETMISSING ?= no
archives-info: archives-list
@echo "[ ** ] Unused targets in make/archives.mk"
@grep --only-matching '^\$$(DL_DIR).*:' make/archives.mk | sed "s|:||g" | \
while read target; do \
found=false; \
for makefile in make/*.mk; do \
if [ "$${makefile##*/}" = "archives.mk" ]; then \
continue; \
fi; \
if [ "$${makefile: -9}" = "-extra.mk" ]; then \
continue; \
fi; \
if grep -q "$$target" $$makefile; then \
found=true; \
fi; \
if [ "$$found" = "true" ]; then \
continue; \
fi; \
done; \
if [ "$$found" = "false" ]; then \
echo -e "[$(TERM_RED) !! $(TERM_NORMAL)] $$target"; \
fi; \
done;
@echo "[ ** ] Unused archives"
@find $(DL_DIR)/ -maxdepth 1 -type f | \
while read archive; do \
if ! grep -q $$archive $(BUILD_DIR)/archives-list; then \
echo -e "[$(TERM_YELLOW) rm $(TERM_NORMAL)] $$archive"; \
if [ "$(DOCLEANUP)" = "yes" ]; then \
rm $$archive; \
fi; \
fi; \
done;
@echo "[ ** ] Missing archives"
@cat $(BUILD_DIR)/archives-list | \
while read archive; do \
if [ -e $$archive ]; then \
#echo -e "[$(TERM_GREEN) ok $(TERM_NORMAL)] $$archive"; \
true; \
else \
echo -e "[$(TERM_YELLOW) -- $(TERM_NORMAL)] $$archive"; \
if [ "$(GETMISSING)" = "yes" ]; then \
make $$archive; \
fi; \
fi; \
done;
@$(REMOVE)/archives-list
# -----------------------------------------------------------------------------
# FIXME - how to resolve variables while grepping makefiles?
patches-info:
@echo "[ ** ] Unused patches"
@for patch in $(PATCHES)/*; do \
if [ ! -f $$patch ]; then \
continue; \
fi; \
patch=$${patch##*/}; \
found=false; \
for makefile in make/*.mk; do \
if grep -q "$$patch" $$makefile; then \
found=true; \
fi; \
if [ "$$found" = "true" ]; then \
continue; \
fi; \
done; \
if [ "$$found" = "false" ]; then \
echo -e "[$(TERM_RED) !! $(TERM_NORMAL)] $$patch"; \
fi; \
done;
# -----------------------------------------------------------------------------
# Create reversed changelog using git log --reverse. # Create reversed changelog using git log --reverse.
# Remove duplicated commits and re-reverse the changelog using awk. # Remove duplicated commits and re-reverse the changelog using awk.
# This keeps the original commit and removes all picked duplicates. # This keeps the original commit and removes all picked duplicates.
@ -227,14 +150,11 @@ endef
changelogs: changelogs:
$(call make-changelog) > $(STAGING_DIR)/changelog-buildsystem $(call make-changelog) > $(STAGING_DIR)/changelog-buildsystem
$(CD) $(SOURCE_DIR)/$(NI-NEUTRINO); \ $(CD) $(SOURCE_DIR)/$(NI_NEUTRINO); \
$(call make-changelog) > $(STAGING_DIR)/changelog-neutrino $(call make-changelog) > $(STAGING_DIR)/changelog-neutrino
$(CD) $(SOURCE_DIR)/$(NI-LIBSTB-HAL); \ $(CD) $(SOURCE_DIR)/$(NI_LIBSTB_HAL); \
$(call make-changelog) > $(STAGING_DIR)/changelog-libstb-hal $(call make-changelog) > $(STAGING_DIR)/changelog-libstb-hal
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
PHONY += archives-list
PHONY += archives-info
PHONY += patches-info
PHONY += changelogs PHONY += changelogs

72
make/buildsystem-prerequisites.mk

@ -70,12 +70,12 @@ download:
$(SOURCE_DIR): $(SOURCE_DIR):
mkdir -p $(@) mkdir -p $(@)
$(BUILD-GENERIC-PC): $(BUILD_GENERIC_PC):
git clone $(NI-PUBLIC)/$(NI-BUILD-GENERIC-PC).git $(BUILD-GENERIC-PC) git clone $(NI_PUBLIC)/$(NI_BUILD_GENERIC_PC).git $(BUILD_GENERIC_PC)
$(SOURCE_DIR)/$(NI-NEUTRINO): $(SOURCE_DIR)/$(NI_NEUTRINO):
$(CD) $(SOURCE_DIR); \ $(CD) $(SOURCE_DIR); \
git clone $(NI-PUBLIC)/$(@F).git git clone $(NI_PUBLIC)/$(@F).git
ifeq ($(NI_ADMIN),true) ifeq ($(NI_ADMIN),true)
$(CD) $(@); \ $(CD) $(@); \
git remote add tuxbox $(GITHUB)/tuxbox-neutrino/gui-neutrino.git; \ git remote add tuxbox $(GITHUB)/tuxbox-neutrino/gui-neutrino.git; \
@ -85,9 +85,9 @@ ifeq ($(NI_ADMIN),true)
git fetch --all git fetch --all
endif endif
$(SOURCE_DIR)/$(NI-LIBSTB-HAL): $(SOURCE_DIR)/$(NI_LIBSTB_HAL):
$(CD) $(SOURCE_DIR); \ $(CD) $(SOURCE_DIR); \
git clone $(NI-PUBLIC)/$(@F).git git clone $(NI_PUBLIC)/$(@F).git
ifeq ($(NI_ADMIN),true) ifeq ($(NI_ADMIN),true)
$(CD) $(@); \ $(CD) $(@); \
git remote add tuxbox $(GITHUB)/tuxbox-neutrino/library-stb-hal.git; \ git remote add tuxbox $(GITHUB)/tuxbox-neutrino/library-stb-hal.git; \
@ -100,13 +100,13 @@ endif
$(SOURCE_DIR)/$(NI-LIBCOOLSTREAM): $(SOURCE_DIR)/$(NI-LIBCOOLSTREAM):
ifeq ($(HAS_LIBCS),yes) ifeq ($(HAS_LIBCS),yes)
$(CD) $(SOURCE_DIR); \ $(CD) $(SOURCE_DIR); \
git clone $(NI-PRIVATE)/$(@F).git git clone $(NI_PRIVATE)/$(@F).git
endif endif
# upstream for rebase # upstream for rebase
$(SOURCE_DIR)/$(NI-FFMPEG): $(SOURCE_DIR)/$(NI_FFMPEG):
$(CD) $(SOURCE_DIR); \ $(CD) $(SOURCE_DIR); \
git clone $(NI-PUBLIC)/$(@F).git git clone $(NI_PUBLIC)/$(@F).git
ifeq ($(NI_ADMIN),true) ifeq ($(NI_ADMIN),true)
$(CD) $(@); \ $(CD) $(@); \
git remote add upstream https://git.ffmpeg.org/ffmpeg.git; \ git remote add upstream https://git.ffmpeg.org/ffmpeg.git; \
@ -115,9 +115,9 @@ endif
# upstream for rebase # upstream for rebase
# torvalds for cherry-picking # torvalds for cherry-picking
$(SOURCE_DIR)/$(NI-LINUX-KERNEL): $(SOURCE_DIR)/$(NI_LINUX_KERNEL):
$(CD) $(SOURCE_DIR); \ $(CD) $(SOURCE_DIR); \
git clone $(NI-PUBLIC)/$(@F).git git clone $(NI_PUBLIC)/$(@F).git
ifeq ($(NI_ADMIN),true) ifeq ($(NI_ADMIN),true)
$(CD) $(@); \ $(CD) $(@); \
git remote add upstream https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git; \ git remote add upstream https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git; \
@ -126,9 +126,9 @@ ifeq ($(NI_ADMIN),true)
endif endif
# upstream for rebase # upstream for rebase
$(SOURCE_DIR)/$(NI-OFGWRITE): $(SOURCE_DIR)/$(NI_OFGWRITE):
$(CD) $(SOURCE_DIR); \ $(CD) $(SOURCE_DIR); \
git clone $(NI-PUBLIC)/$(@F).git git clone $(NI_PUBLIC)/$(@F).git
ifeq ($(NI_ADMIN),true) ifeq ($(NI_ADMIN),true)
$(CD) $(@); \ $(CD) $(@); \
git remote add upstream $(GITHUB)/oe-alliance/ofgwrite.git; \ git remote add upstream $(GITHUB)/oe-alliance/ofgwrite.git; \
@ -136,42 +136,42 @@ ifeq ($(NI_ADMIN),true)
endif endif
# upstream for rebase # upstream for rebase
$(SOURCE_DIR)/$(NI-RTMPDUMP): $(SOURCE_DIR)/$(NI_RTMPDUMP):
$(CD) $(SOURCE_DIR); \ $(CD) $(SOURCE_DIR); \
git clone $(NI-PUBLIC)/$(@F).git git clone $(NI_PUBLIC)/$(@F).git
ifeq ($(NI_ADMIN),true) ifeq ($(NI_ADMIN),true)
$(CD) $(@); \ $(CD) $(@); \
git remote add upstream git://git.ffmpeg.org/rtmpdump; \ git remote add upstream git://git.ffmpeg.org/rtmpdump; \
git fetch --all git fetch --all
endif endif
$(SOURCE_DIR)/$(NI-DRIVERS-BIN) \ $(SOURCE_DIR)/$(NI_DRIVERS_BIN) \
$(SOURCE_DIR)/$(NI-LOGO-STUFF) \ $(SOURCE_DIR)/$(NI_LOGO_STUFF) \
$(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS) \ $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS) \
$(SOURCE_DIR)/$(NI-OPENTHREADS) \ $(SOURCE_DIR)/$(NI_OPENTHREADS) \
$(SOURCE_DIR)/$(NI-STREAMRIPPER): $(SOURCE_DIR)/$(NI_STREAMRIPPER):
$(CD) $(SOURCE_DIR); \ $(CD) $(SOURCE_DIR); \
git clone $(NI-PUBLIC)/$(@F).git git clone $(NI_PUBLIC)/$(@F).git
ni-sources: $(SOURCE_DIR) \ ni-sources: $(SOURCE_DIR) \
$(BUILD-GENERIC-PC) \ $(BUILD_GENERIC_PC) \
$(SOURCE_DIR)/$(NI-DRIVERS-BIN) \ $(SOURCE_DIR)/$(NI_DRIVERS_BIN) \
$(SOURCE_DIR)/$(NI-FFMPEG) \ $(SOURCE_DIR)/$(NI_FFMPEG) \
$(SOURCE_DIR)/$(NI-LIBCOOLSTREAM) \ $(SOURCE_DIR)/$(NI-LIBCOOLSTREAM) \
$(SOURCE_DIR)/$(NI-LIBSTB-HAL) \ $(SOURCE_DIR)/$(NI_LIBSTB_HAL) \
$(SOURCE_DIR)/$(NI-LINUX-KERNEL) \ $(SOURCE_DIR)/$(NI_LINUX_KERNEL) \
$(SOURCE_DIR)/$(NI-LOGO-STUFF) \ $(SOURCE_DIR)/$(NI_LOGO_STUFF) \
$(SOURCE_DIR)/$(NI-NEUTRINO) \ $(SOURCE_DIR)/$(NI_NEUTRINO) \
$(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS) \ $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS) \
$(SOURCE_DIR)/$(NI-OFGWRITE) \ $(SOURCE_DIR)/$(NI_OFGWRITE) \
$(SOURCE_DIR)/$(NI-OPENTHREADS) \ $(SOURCE_DIR)/$(NI_OPENTHREADS) \
$(SOURCE_DIR)/$(NI-RTMPDUMP) \ $(SOURCE_DIR)/$(NI_RTMPDUMP) \
$(SOURCE_DIR)/$(NI-STREAMRIPPER) $(SOURCE_DIR)/$(NI_STREAMRIPPER)
checkout-branches: checkout-branches:
$(CD) $(SOURCE_DIR)/$(NI-FFMPEG); git checkout $(FFMPEG_BRANCH) $(CD) $(SOURCE_DIR)/$(NI_FFMPEG); git checkout $(FFMPEG_BRANCH)
$(CD) $(SOURCE_DIR)/$(NI-LINUX-KERNEL); git checkout $(KERNEL_BRANCH) $(CD) $(SOURCE_DIR)/$(NI_LINUX_KERNEL); git checkout $(KERNEL_BRANCH)
$(CD) $(SOURCE_DIR)/$(NI-NEUTRINO); git checkout $(NEUTRINO_BRANCH) $(CD) $(SOURCE_DIR)/$(NI_NEUTRINO); git checkout $(NEUTRINO_BRANCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------

108
make/buildsystem-update.mk

@ -12,24 +12,24 @@ endif
update-neutrino: update-neutrino:
export GIT_MERGE_AUTOEDIT=no; \ export GIT_MERGE_AUTOEDIT=no; \
$(CD) $(SOURCE_DIR)/$(NI-NEUTRINO); \ $(CD) $(SOURCE_DIR)/$(NI_NEUTRINO); \
git checkout master; \ git checkout master; \
git pull --all git pull --all
update-remotes: update-remotes:
ifeq ($(NI_ADMIN),true) ifeq ($(NI_ADMIN),true)
export GIT_MERGE_AUTOEDIT=no; \ export GIT_MERGE_AUTOEDIT=no; \
$(CD) $(SOURCE_DIR)/$(NI-NEUTRINO); \ $(CD) $(SOURCE_DIR)/$(NI_NEUTRINO); \
git checkout master; \ git checkout master; \
git fetch --all git fetch --all
$(CD) $(SOURCE_DIR)/$(NI-LIBSTB-HAL); \ $(CD) $(SOURCE_DIR)/$(NI_LIBSTB_HAL); \
git checkout master; \ git checkout master; \
git fetch --all git fetch --all
$(CD) $(SOURCE_DIR)/$(NI-OFGWRITE); \ $(CD) $(SOURCE_DIR)/$(NI_OFGWRITE); \
git checkout master; \ git checkout master; \
git fetch --all; \ git fetch --all; \
git pull upstream master git pull upstream master
$(CD) $(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS); \ $(CD) $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS); \
git checkout master; \ git checkout master; \
git fetch --all; \ git fetch --all; \
./update-tuxbox-remotes.sh ./update-tuxbox-remotes.sh
@ -38,26 +38,26 @@ endif
# rebase of ffmpeg/kernel repos forces us to force push into git repo # rebase of ffmpeg/kernel repos forces us to force push into git repo
# use this target once if such force push was done # use this target once if such force push was done
update-ni-force: update-ni-force:
#rm -rf $(SOURCE_DIR)/$(NI-LINUX-KERNEL) #rm -rf $(SOURCE_DIR)/$(NI_LINUX_KERNEL)
rm -rf $(SOURCE_DIR)/$(NI-FFMPEG) rm -rf $(SOURCE_DIR)/$(NI_FFMPEG)
make ni-sources make ni-sources
make update-ni-sources make update-ni-sources
update-ni-sources: ni-sources update-neutrino update-ni-sources: ni-sources update-neutrino
$(CD) $(BUILD-GENERIC-PC); git pull $(CD) $(BUILD_GENERIC_PC); git pull
$(CD) $(SOURCE_DIR)/$(NI-DRIVERS-BIN); git pull $(CD) $(SOURCE_DIR)/$(NI_DRIVERS_BIN); git pull
$(CD) $(SOURCE_DIR)/$(NI-FFMPEG); git pull --all $(CD) $(SOURCE_DIR)/$(NI_FFMPEG); git pull --all
ifeq ($(HAS_LIBCS),yes) ifeq ($(HAS_LIBCS),yes)
$(CD) $(SOURCE_DIR)/$(NI-LIBCOOLSTREAM); git pull $(CD) $(SOURCE_DIR)/$(NI-LIBCOOLSTREAM); git pull
endif endif
$(CD) $(SOURCE_DIR)/$(NI-LIBSTB-HAL); git pull $(CD) $(SOURCE_DIR)/$(NI_LIBSTB_HAL); git pull
$(CD) $(SOURCE_DIR)/$(NI-LINUX-KERNEL); git pull --all $(CD) $(SOURCE_DIR)/$(NI_LINUX_KERNEL); git pull --all
$(CD) $(SOURCE_DIR)/$(NI-LOGO-STUFF); git pull $(CD) $(SOURCE_DIR)/$(NI_LOGO_STUFF); git pull
$(CD) $(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS); git pull $(CD) $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS); git pull
$(CD) $(SOURCE_DIR)/$(NI-OFGWRITE); git pull $(CD) $(SOURCE_DIR)/$(NI_OFGWRITE); git pull
$(CD) $(SOURCE_DIR)/$(NI-OPENTHREADS); git pull $(CD) $(SOURCE_DIR)/$(NI_OPENTHREADS); git pull
$(CD) $(SOURCE_DIR)/$(NI-RTMPDUMP); git pull $(CD) $(SOURCE_DIR)/$(NI_RTMPDUMP); git pull
$(CD) $(SOURCE_DIR)/$(NI-STREAMRIPPER); git pull $(CD) $(SOURCE_DIR)/$(NI_STREAMRIPPER); git pull
make checkout-branches make checkout-branches
update: update-self update-ni-sources update: update-self update-ni-sources
@ -70,59 +70,59 @@ push:
ifeq ($(HAS_INTERNALS),yes) ifeq ($(HAS_INTERNALS),yes)
$(CD) $(BASE_DIR)/$(NI-INTERNALS); git push $(CD) $(BASE_DIR)/$(NI-INTERNALS); git push
endif endif
$(CD) $(BUILD-GENERIC-PC); git push $(CD) $(BUILD_GENERIC_PC); git push
$(CD) $(SOURCE_DIR)/$(NI-DRIVERS-BIN); git push $(CD) $(SOURCE_DIR)/$(NI_DRIVERS_BIN); git push
$(CD) $(SOURCE_DIR)/$(NI-FFMPEG); git push --all $(CD) $(SOURCE_DIR)/$(NI_FFMPEG); git push --all
ifeq ($(HAS_LIBCS),yes) ifeq ($(HAS_LIBCS),yes)
$(CD) $(SOURCE_DIR)/$(NI-LIBCOOLSTREAM); git push --all $(CD) $(SOURCE_DIR)/$(NI-LIBCOOLSTREAM); git push --all
endif endif
$(CD) $(SOURCE_DIR)/$(NI-LIBSTB-HAL); git push $(CD) $(SOURCE_DIR)/$(NI_LIBSTB_HAL); git push
$(CD) $(SOURCE_DIR)/$(NI-LINUX-KERNEL); git push --all $(CD) $(SOURCE_DIR)/$(NI_LINUX_KERNEL); git push --all
$(CD) $(SOURCE_DIR)/$(NI-LOGO-STUFF); git push $(CD) $(SOURCE_DIR)/$(NI_LOGO_STUFF); git push
$(CD) $(SOURCE_DIR)/$(NI-NEUTRINO); git push $(CD) $(SOURCE_DIR)/$(NI_NEUTRINO); git push
$(CD) $(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS); git push $(CD) $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS); git push
$(CD) $(SOURCE_DIR)/$(NI-OFGWRITE); git push $(CD) $(SOURCE_DIR)/$(NI_OFGWRITE); git push
$(CD) $(SOURCE_DIR)/$(NI-OPENTHREADS); git push $(CD) $(SOURCE_DIR)/$(NI_OPENTHREADS); git push
$(CD) $(SOURCE_DIR)/$(NI-RTMPDUMP); git push $(CD) $(SOURCE_DIR)/$(NI_RTMPDUMP); git push
$(CD) $(SOURCE_DIR)/$(NI-STREAMRIPPER); git push $(CD) $(SOURCE_DIR)/$(NI_STREAMRIPPER); git push
status: status:
git status -s -b git status -s -b
ifeq ($(HAS_INTERNALS),yes) ifeq ($(HAS_INTERNALS),yes)
$(CD) $(BASE_DIR)/$(NI-INTERNALS); git status -s -b $(CD) $(BASE_DIR)/$(NI-INTERNALS); git status -s -b
endif endif
$(CD) $(BUILD-GENERIC-PC); git status -s -b $(CD) $(BUILD_GENERIC_PC); git status -s -b
$(CD) $(SOURCE_DIR)/$(NI-DRIVERS-BIN); git status -s -b $(CD) $(SOURCE_DIR)/$(NI_DRIVERS_BIN); git status -s -b
$(CD) $(SOURCE_DIR)/$(NI-FFMPEG); git status -s -b $(CD) $(SOURCE_DIR)/$(NI_FFMPEG); git status -s -b
ifeq ($(HAS_LIBCS),yes) ifeq ($(HAS_LIBCS),yes)
$(CD) $(SOURCE_DIR)/$(NI-LIBCOOLSTREAM); git status -s -b $(CD) $(SOURCE_DIR)/$(NI-LIBCOOLSTREAM); git status -s -b
endif endif
$(CD) $(SOURCE_DIR)/$(NI-LIBSTB-HAL); git status -s -b $(CD) $(SOURCE_DIR)/$(NI_LIBSTB_HAL); git status -s -b
$(CD) $(SOURCE_DIR)/$(NI-LINUX-KERNEL); git status -s -b $(CD) $(SOURCE_DIR)/$(NI_LINUX_KERNEL); git status -s -b
$(CD) $(SOURCE_DIR)/$(NI-LOGO-STUFF); git status -s -b $(CD) $(SOURCE_DIR)/$(NI_LOGO_STUFF); git status -s -b
$(CD) $(SOURCE_DIR)/$(NI-NEUTRINO); git status -s -b $(CD) $(SOURCE_DIR)/$(NI_NEUTRINO); git status -s -b
$(CD) $(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS); git status -s -b $(CD) $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS); git status -s -b
$(CD) $(SOURCE_DIR)/$(NI-OFGWRITE); git status -s -b $(CD) $(SOURCE_DIR)/$(NI_OFGWRITE); git status -s -b
$(CD) $(SOURCE_DIR)/$(NI-OPENTHREADS); git status -s -b $(CD) $(SOURCE_DIR)/$(NI_OPENTHREADS); git status -s -b
$(CD) $(SOURCE_DIR)/$(NI-RTMPDUMP); git status -s -b $(CD) $(SOURCE_DIR)/$(NI_RTMPDUMP); git status -s -b
$(CD) $(SOURCE_DIR)/$(NI-STREAMRIPPER); git status -s -b $(CD) $(SOURCE_DIR)/$(NI_STREAMRIPPER); git status -s -b
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
REPOSITORIES = \ REPOSITORIES = \
. \ . \
$(BUILD-GENERIC-PC) \ $(BUILD_GENERIC_PC) \
$(SOURCE_DIR)/$(NI-DRIVERS-BIN) \ $(SOURCE_DIR)/$(NI_DRIVERS_BIN) \
$(SOURCE_DIR)/$(NI-FFMPEG) \ $(SOURCE_DIR)/$(NI_FFMPEG) \
$(SOURCE_DIR)/$(NI-LIBSTB-HAL) \ $(SOURCE_DIR)/$(NI_LIBSTB_HAL) \
$(SOURCE_DIR)/$(NI-LINUX-KERNEL) \ $(SOURCE_DIR)/$(NI_LINUX_KERNEL) \
$(SOURCE_DIR)/$(NI-LOGO-STUFF) \ $(SOURCE_DIR)/$(NI_LOGO_STUFF) \
$(SOURCE_DIR)/$(NI-NEUTRINO) \ $(SOURCE_DIR)/$(NI_NEUTRINO) \
$(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS) \ $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS) \
$(SOURCE_DIR)/$(NI-OFGWRITE) \ $(SOURCE_DIR)/$(NI_OFGWRITE) \
$(SOURCE_DIR)/$(NI-OPENTHREADS) \ $(SOURCE_DIR)/$(NI_OPENTHREADS) \
$(SOURCE_DIR)/$(NI-RTMPDUMP) \ $(SOURCE_DIR)/$(NI_RTMPDUMP) \
$(SOURCE_DIR)/$(NI-STREAMRIPPER) $(SOURCE_DIR)/$(NI_STREAMRIPPER)
URL_OLD = $(BITBUCKET_SSH):neutrino-images URL_OLD = $(BITBUCKET_SSH):neutrino-images
URL_NEW = $(if $(filter $(USE_SSH),y),$(GITHUB_SSH):neutrino-images,$(GITHUB)/neutrino-images) URL_NEW = $(if $(filter $(USE_SSH),y),$(GITHUB_SSH):neutrino-images,$(GITHUB)/neutrino-images)

50
make/buildsystem-utils.mk

@ -46,8 +46,8 @@ SHARP_SIGN := \#
# implementation that avoids the use of __tmp, but that would be even # implementation that avoids the use of __tmp, but that would be even
# more unreadable and is not worth the effort. # more unreadable and is not worth the effort.
[LOWER] := a b c d e f g h i j k l m n o p q r s t u v w x y z [LOWER] := a b c d e f g h i j k l m n o p q r s t u v w x y z - .
[UPPER] := A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [UPPER] := A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _ _
define caseconvert-helper define caseconvert-helper
$(1) = $$(strip \ $(1) = $$(strip \
@ -69,11 +69,21 @@ reverse = $(if $(1),$(call reverse,$(wordlist 2,$(words $(1)),$(1))) $(firstword
# slashes, colons (OK in filenames but not in rules), and spaces. # slashes, colons (OK in filenames but not in rules), and spaces.
sanitize = $(subst $(space),_,$(subst :,_,$(subst /,_,$(strip $(1))))) sanitize = $(subst $(space),_,$(subst :,_,$(subst /,_,$(strip $(1)))))
# MESSAGE Macro -- display a message in bold type TERM_RED = \033[40;0;31m
MESSAGE = echo "$(TERM_BOLD)>>> $($(PKG)_NAME) $($(PKG)_VERSION) $(call qstrip,$(1))$(TERM_RESET)" TERM_RED_BOLD = \033[40;1;31m
TERM_GREEN = \033[40;0;32m
TERM_GREEN_BOLD = \033[40;1;32m
TERM_YELLOW = \033[40;0;33m
TERM_YELLOW_BOLD= \033[40;1;33m
TERM_NORMAL = \033[0m
TERM_BOLD := $(shell tput smso 2>/dev/null) TERM_BOLD := $(shell tput smso 2>/dev/null)
TERM_RESET := $(shell tput rmso 2>/dev/null) TERM_RESET := $(shell tput rmso 2>/dev/null)
# MESSAGE Macro -- display a message in bold type
MESSAGE = echo -e "$(TERM_YELLOW)$(call qstrip,$(1))$(TERM_NORMAL)"
#MESSAGE = echo "$(TERM_BOLD)>>> $($(PKG)_NAME) $($(PKG)_VERSION) $(call qstrip,$(1))$(TERM_RESET)"
# Utility functions for 'find' # Utility functions for 'find'
# findfileclauses(filelist) => -name 'X' -o -name 'Y' # findfileclauses(filelist) => -name 'X' -o -name 'Y'
findfileclauses = $(call notfirstword,$(patsubst %,-o -name '%',$(1))) findfileclauses = $(call notfirstword,$(patsubst %,-o -name '%',$(1)))
@ -135,3 +145,35 @@ define PRINTF
$(subst $(QUOTE),$(QUOTE)\$(QUOTE)$(QUOTE),\ $(subst $(QUOTE),$(QUOTE)\$(QUOTE)$(QUOTE),\
$(subst \,\\,$(1)))))\n' $(subst \,\\,$(1)))))\n'
endef endef
#
# $(1) = title
# $(2) = color
# 0 - Black
# 1 - Red
# 2 - Green
# 3 - Yellow
# 4 - Blue
# 5 - Magenta
# 6 - Cyan
# 7 - White
# $(3) = left|center|right
#
define draw_line
@ \
printf '%.0s-' {1..$(shell tput cols)}; \
if test "$(1)"; then \
cols=$(shell tput cols); \
length=$(shell echo $(1) | awk '{print length}'); \
case "$(3)" in \
*right) let indent="length + 1" ;; \
*center) let indent="cols - (cols - length) / 2" ;; \
*left|*) let indent="cols" ;; \
esac; \
tput cub $$indent; \
test "$(2)" && printf $$(tput setaf $(2)); \
printf '$(1)'; \
test "$(2)" && printf $$(tput sgr0); \
fi; \
echo
endef

50
make/crosstool.mk

@ -49,62 +49,62 @@ kernel-tarball: $(BUILD_DIR)/linux-$(KERNEL_VER).tar
# create kernel-tarball # create kernel-tarball
$(BUILD_DIR)/linux-$(KERNEL_VER).tar: | $(BUILD_DIR) $(BUILD_DIR)/linux-$(KERNEL_VER).tar: | $(BUILD_DIR)
$(MAKE) kernel.do_prepare.$(if $(filter $(KERNEL_SOURCE),git),git,tar) $(MAKE) kernel.do_prepare_$(if $(filter $(KERNEL_SOURCE),git),git,tar)
tar cf $(@) --exclude-vcs -C $(BUILD_DIR)/$(KERNEL_DIR) . tar cf $(@) --exclude-vcs -C $(BUILD_DIR)/$(KERNEL_DIR) .
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
CROSSTOOL-NG_VER = git CROSSTOOL_NG_VER = git
CROSSTOOL-NG_DIR = crosstool-ng.$(CROSSTOOL-NG_VER) CROSSTOOL_NG_DIR = crosstool-ng.$(CROSSTOOL_NG_VER)
CROSSTOOL-NG_SOURCE = crosstool-ng.$(CROSSTOOL-NG_VER) CROSSTOOL_NG_SOURCE = crosstool-ng.$(CROSSTOOL_NG_VER)
CROSSTOOL-NG_SITE = https://github.com/neutrino-images CROSSTOOL_NG_SITE = https://github.com/neutrino-images
CROSSTOOL-NG_PATCH = crosstool-ng-bash-version.patch CROSSTOOL_NG_PATCH = crosstool-ng-bash-version.patch
CROSSTOOL-NG_CONFIG = $(CONFIGS)/ct-ng-$(BOXTYPE).config CROSSTOOL_NG_CONFIG = $(PACKAGE_DIR)/crosstool-ng/files/ct-ng-$(BOXTYPE).config
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1 hd2)) ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1 hd2))
CROSSTOOL-NG_CONFIG = $(CONFIGS)/ct-ng-$(BOXTYPE)-$(BOXSERIES).config CROSSTOOL_NG_CONFIG = $(PACKAGE_DIR)/crosstool-ng/files/ct-ng-$(BOXTYPE)-$(BOXSERIES).config
endif endif
# crosstool for hd2 depends on gcc-linaro # crosstool for hd2 depends on gcc-linaro
GCC-LINARO_VER = 4.9-2017.01 GCC_LINARO_VER = 4.9-2017.01
GCC-LINARO_SOURCE = gcc-linaro-$(GCC-LINARO_VER).tar.xz GCC_LINARO_SOURCE = gcc-linaro-$(GCC_LINARO_VER).tar.xz
GCC-LINARO_SITE = https://releases.linaro.org/components/toolchain/gcc-linaro/$(GCC-LINARO_VER) GCC_LINARO_SITE = https://releases.linaro.org/components/toolchain/gcc-linaro/$(GCC_LINARO_VER)
$(DL_DIR)/$(GCC-LINARO_SOURCE): $(DL_DIR)/$(GCC_LINARO_SOURCE):
$(DOWNLOAD) $(GCC-LINARO_SITE)/$(GCC-LINARO_SOURCE) $(DOWNLOAD) $(GCC_LINARO_SITE)/$(GCC_LINARO_SOURCE)
UCLIBC_VER = 1.0.24 UCLIBC_VER = 1.0.24
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# crosstool for arm-hd2 depends on gcc-linaro # crosstool for arm-hd2 depends on gcc-linaro
$(CROSS_BASE)/arm/hd2: $(DL_DIR)/$(GCC-LINARO_SOURCE) $(CROSS_BASE)/arm/hd2: $(DL_DIR)/$(GCC_LINARO_SOURCE)
$(CROSS_DIR): | $(BUILD_DIR) $(CROSS_DIR): | $(BUILD_DIR)
make $(BUILD_DIR)/linux-$(KERNEL_VER).tar make $(BUILD_DIR)/linux-$(KERNEL_VER).tar
# #
$(REMOVE)/$(CROSSTOOL-NG_DIR) $(REMOVE)/$(CROSSTOOL_NG_DIR)
$(GET-GIT-SOURCE) $(CROSSTOOL-NG_SITE)/$(CROSSTOOL-NG_SOURCE) $(DL_DIR)/$(CROSSTOOL-NG_SOURCE) $(GET-GIT-SOURCE) $(CROSSTOOL_NG_SITE)/$(CROSSTOOL_NG_SOURCE) $(DL_DIR)/$(CROSSTOOL_NG_SOURCE)
$(CPDIR)/$(CROSSTOOL-NG_SOURCE) $(CPDIR)/$(CROSSTOOL_NG_SOURCE)
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1 hd2)) ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1 hd2))
$(CHDIR)/$(CROSSTOOL-NG_DIR); \ $(CHDIR)/$(CROSSTOOL_NG_DIR); \
git checkout 1dbb06f2; \ git checkout 1dbb06f2; \
$(call apply_patches,$(CROSSTOOL-NG_PATCH)) $(call apply_patches,$(PACKAGE_DIR)/crosstool-ng/patches/$(CROSSTOOL_NG_PATCH))
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd2)) ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd2))
$(CHDIR)/$(CROSSTOOL-NG_DIR); \ $(CHDIR)/$(CROSSTOOL_NG_DIR); \
$(INSTALL_COPY) $(PATCHES)/crosstool-ng/gcc/* patches/gcc/linaro-6.3-2017.02 $(INSTALL_COPY) $(PACKAGE_DIR)/crosstool-ng/patches/gcc/* patches/gcc/linaro-6.3-2017.02
endif endif
endif endif
$(CHDIR)/$(CROSSTOOL-NG_DIR); \ $(CHDIR)/$(CROSSTOOL_NG_DIR); \
unset CONFIG_SITE LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE; \ unset CONFIG_SITE LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE; \
$(INSTALL_DATA) $(CROSSTOOL-NG_CONFIG) .config; \ $(INSTALL_DATA) $(CROSSTOOL_NG_CONFIG) .config; \
$(SED) "s|^CT_PARALLEL_JOBS=.*|CT_PARALLEL_JOBS=$(PARALLEL_JOBS)|" .config; \ $(SED) "s|^CT_PARALLEL_JOBS=.*|CT_PARALLEL_JOBS=$(PARALLEL_JOBS)|" .config; \
export NI_LOCAL_TARBALLS_DIR=$(DL_DIR); \ export NI_LOCAL_TARBALLS_DIR=$(DL_DIR); \
export NI_PREFIX_DIR=$(@); \ export NI_PREFIX_DIR=$(@); \
export NI_KERNEL_VERSION=$(KERNEL_VER); \ export NI_KERNEL_VERSION=$(KERNEL_VER); \
export NI_KERNEL_LOCATION=$(BUILD_DIR)/linux-$(KERNEL_VER).tar; \ export NI_KERNEL_LOCATION=$(BUILD_DIR)/linux-$(KERNEL_VER).tar; \
export NI_LIBC_UCLIBC_CONFIG_FILE=$(CONFIGS)/ct-ng-uClibc-$(UCLIBC_VER).config; \ export NI_LIBC_UCLIBC_CONFIG_FILE=$(PACKAGE_DIR)/crosstool-ng/files/ct-ng-uClibc-$(UCLIBC_VER).config; \
export LD_LIBRARY_PATH=; \ export LD_LIBRARY_PATH=; \
test -f ./configure || ./bootstrap; \ test -f ./configure || ./bootstrap; \
./configure --enable-local; \ ./configure --enable-local; \
@ -117,7 +117,7 @@ ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1 hd2))
endif endif
test -e $(CROSS_DIR)/$(TARGET)/lib || ln -sf sys-root/lib $(CROSS_DIR)/$(TARGET)/ test -e $(CROSS_DIR)/$(TARGET)/lib || ln -sf sys-root/lib $(CROSS_DIR)/$(TARGET)/
rm -f $(CROSS_DIR)/$(TARGET)/sys-root/lib/libstdc++.so.6.0.*-gdb.py rm -f $(CROSS_DIR)/$(TARGET)/sys-root/lib/libstdc++.so.6.0.*-gdb.py
$(REMOVE)/$(CROSSTOOL-NG_DIR) $(REMOVE)/$(CROSSTOOL_NG_DIR)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------

314
make/environment-build.mk

@ -3,33 +3,40 @@
# #
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
CONFIG_SITE =
export CONFIG_SITE
LD_LIBRARY_PATH = LD_LIBRARY_PATH =
export LD_LIBRARY_PATH export LD_LIBRARY_PATH
SHELL := /bin/bash SHELL := /bin/bash
# empty variable EMPTY for smoother comparisons
EMPTY =
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# set up default parallelism ifndef MAKE
PARALLEL_JOBS := $(shell echo $$((1 + `getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1`))) MAKE := make
override MAKE = make $(if $(findstring j,$(filter-out --%,$(MAKEFLAGS))),,-j$(PARALLEL_JOBS)) endif
ifndef HOSTMAKE
HOSTMAKE = $(MAKE)
endif
HOSTMAKE := $(shell which $(HOSTMAKE) || type -p $(HOSTMAKE) || echo make)
MAKE1 = make -j1 PARALLEL_JOBS := $(shell echo \
$$((1 + `getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1`)))
MAKE1 := $(HOSTMAKE) -j1
override MAKE = $(HOSTMAKE) \
$(if $(findstring j,$(filter-out --%,$(MAKEFLAGS))),,-j$(PARALLEL_JOBS))
MAKEFLAGS += --no-print-directory MAKEFLAGS += --no-print-directory
#MAKEFLAGS += --silent #MAKEFLAGS += --silent
TARGET_VENDOR = NI-Buildsystem
TARGET_OS = linux
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
ifeq ($(BOXSERIES),hd1) ifeq ($(BOXSERIES),hd1)
DRIVERS-BIN_DIR = $(BOXTYPE)/$(BOXFAMILY) DRIVERS_BIN_DIR = $(BOXTYPE)/$(BOXFAMILY)
CORTEX-STRINGS_LDFLAG = CORTEX_STRINGS_LDFLAG =
TARGET = arm-cx2450x-linux-gnueabi TARGET = arm-cx2450x-linux-gnueabi
TARGET_OPTIMIZATION = -Os TARGET_OPTIMIZATION = -Os
TARGET_DEBUGGING = -g TARGET_DEBUGGING = -g
@ -42,8 +49,8 @@ ifeq ($(BOXSERIES),hd1)
CXX11_ABI = CXX11_ABI =
else ifeq ($(BOXSERIES),hd2) else ifeq ($(BOXSERIES),hd2)
DRIVERS-BIN_DIR = $(BOXTYPE)/$(BOXFAMILY) DRIVERS_BIN_DIR = $(BOXTYPE)/$(BOXFAMILY)
CORTEX-STRINGS_LDFLAG = -lcortex-strings CORTEX_STRINGS_LDFLAG = -lcortex-strings
TARGET = arm-cortex-linux-uclibcgnueabi TARGET = arm-cortex-linux-uclibcgnueabi
TARGET_OPTIMIZATION = -O2 TARGET_OPTIMIZATION = -O2
TARGET_DEBUGGING = -g TARGET_DEBUGGING = -g
@ -61,8 +68,8 @@ else ifeq ($(BOXSERIES),hd2)
CXX11_ABI = -D_GLIBCXX_USE_CXX11_ABI=0 CXX11_ABI = -D_GLIBCXX_USE_CXX11_ABI=0
else ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd5x hd6x vusolo4k vuduo4k vuduo4kse vuultimo4k vuzero4k vuuno4k vuuno4kse)) else ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd5x hd6x vusolo4k vuduo4k vuduo4kse vuultimo4k vuzero4k vuuno4k vuuno4kse))
DRIVERS-BIN_DIR = $(BOXTYPE)/$(BOXMODEL) DRIVERS_BIN_DIR = $(BOXTYPE)/$(BOXMODEL)
CORTEX-STRINGS_LDFLAG = -lcortex-strings CORTEX_STRINGS_LDFLAG = -lcortex-strings
TARGET = arm-cortex-linux-gnueabihf TARGET = arm-cortex-linux-gnueabihf
TARGET_OPTIMIZATION = -O2 TARGET_OPTIMIZATION = -O2
TARGET_DEBUGGING = -g TARGET_DEBUGGING = -g
@ -75,8 +82,8 @@ else ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd5x hd6x vusolo4k vuduo4k vuduo4k
CXX11_ABI = CXX11_ABI =
else ifeq ($(BOXSERIES),$(filter $(BOXSERIES),vuduo)) else ifeq ($(BOXSERIES),$(filter $(BOXSERIES),vuduo))
DRIVERS-BIN_DIR = $(BOXTYPE)/$(BOXMODEL) DRIVERS_BIN_DIR = $(BOXTYPE)/$(BOXMODEL)
CORTEX-STRINGS_LDFLAG = CORTEX_STRINGS_LDFLAG =
TARGET = mipsel-unknown-linux-gnu TARGET = mipsel-unknown-linux-gnu
TARGET_OPTIMIZATION = -O2 TARGET_OPTIMIZATION = -O2
TARGET_DEBUGGING = -g TARGET_DEBUGGING = -g
@ -116,12 +123,13 @@ STATIC_BASE = $(BASE_DIR)/static
STATIC_DIR = $(STATIC_BASE)/$(TARGET_ARCH)-linux-$(KERNEL_VER) STATIC_DIR = $(STATIC_BASE)/$(TARGET_ARCH)-linux-$(KERNEL_VER)
CONFIGS = $(BASE_DIR)/configs CONFIGS = $(BASE_DIR)/configs
PATCHES = $(BASE_DIR)/patches PATCHES = $(BASE_DIR)/patches
SKEL-ROOT = $(BASE_DIR)/skel-root/$(BOXSERIES) SKEL_ROOT = $(BASE_DIR)/skel-root/$(BOXSERIES)
ifeq ($(BOXMODEL),$(filter $(BOXMODEL),vusolo4k vuduo4k vuduo4kse vuultimo4k vuzero4k vuuno4k vuuno4kse)) ifeq ($(BOXMODEL),$(filter $(BOXMODEL),vusolo4k vuduo4k vuduo4kse vuultimo4k vuzero4k vuuno4k vuuno4kse))
SKEL-ROOT = $(BASE_DIR)/skel-root/vuplus SKEL_ROOT = $(BASE_DIR)/skel-root/vuplus
endif endif
TARGET_FILES = $(BASE_DIR)/skel-root/general TARGET_FILES = $(BASE_DIR)/skel-root/general
BOOTMENU_DIR = $(BASE_DIR)/bootmenu BOOTMENU_DIR = $(BASE_DIR)/bootmenu
PACKAGE_DIR = $(BASE_DIR)/package
BUILD ?= $(shell /usr/share/libtool/config/config.guess 2>/dev/null || /usr/share/misc/config.guess 2>/dev/null) BUILD ?= $(shell /usr/share/libtool/config/config.guess 2>/dev/null || /usr/share/misc/config.guess 2>/dev/null)
@ -131,19 +139,6 @@ include make/environment-host.mk
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
PKG_NAME = $(basename $(@F))
PKG_UPPER = $(call UPPERCASE,$(PKG_NAME))
PKG_LOWER = $(call LOWERCASE,$(PKG_NAME))
PKG_VER = $($(PKG_UPPER)_VER)
PKG_DIR = $($(PKG_UPPER)_DIR)
PKG_SOURCE = $($(PKG_UPPER)_SOURCE)
PKG_SITE = $($(PKG_UPPER)_SITE)
PKG_BUILD_DIR = $(BUILD_DIR)/$(PKG_DIR)
PKG_FILES_DIR = $(BASE_DIR)/package/$(subst host-,,$(PKG_NAME))/files
PKG_PATCHES_DIR = $(PATCHES)/$(subst host-,,$(PKG_NAME))
# -----------------------------------------------------------------------------
CCACHE = /usr/bin/ccache CCACHE = /usr/bin/ccache
CCACHE_DIR = $(HOME)/.ccache-ni-buildsystem-$(TARGET_ARCH)-linux-$(KERNEL_VER) CCACHE_DIR = $(HOME)/.ccache-ni-buildsystem-$(TARGET_ARCH)-linux-$(KERNEL_VER)
export CCACHE_DIR export CCACHE_DIR
@ -164,7 +159,7 @@ STATIC_libdir = $(STATIC_DIR)/$(prefix)/lib
TARGET_CFLAGS = -pipe $(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING) $(TARGET_ABI) $(TARGET_EXTRA_CFLAGS) $(CXX11_ABI) -I$(TARGET_includedir) TARGET_CFLAGS = -pipe $(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING) $(TARGET_ABI) $(TARGET_EXTRA_CFLAGS) $(CXX11_ABI) -I$(TARGET_includedir)
TARGET_CPPFLAGS = $(TARGET_CFLAGS) TARGET_CPPFLAGS = $(TARGET_CFLAGS)
TARGET_CXXFLAGS = $(TARGET_CFLAGS) TARGET_CXXFLAGS = $(TARGET_CFLAGS)
TARGET_LDFLAGS = $(CORTEX-STRINGS_LDFLAG) $(TARGET_EXTRA_LDFLAGS) TARGET_LDFLAGS = $(CORTEX_STRINGS_LDFLAG) $(TARGET_EXTRA_LDFLAGS)
TARGET_LDFLAGS += -L$(TARGET_base_libdir) -L$(TARGET_libdir) TARGET_LDFLAGS += -L$(TARGET_base_libdir) -L$(TARGET_libdir)
TARGET_LDFLAGS += -Wl,-rpath,$(TARGET_libdir) -Wl,-rpath-link,$(TARGET_libdir) TARGET_LDFLAGS += -Wl,-rpath,$(TARGET_libdir) -Wl,-rpath-link,$(TARGET_libdir)
TARGET_LDFLAGS += -Wl,-O1 TARGET_LDFLAGS += -Wl,-O1
@ -179,24 +174,14 @@ TARGET_CPP = $(TARGET_CROSS)cpp
TARGET_CXX = $(TARGET_CROSS)g++ TARGET_CXX = $(TARGET_CROSS)g++
TARGET_LD = $(TARGET_CROSS)ld TARGET_LD = $(TARGET_CROSS)ld
TARGET_NM = $(TARGET_CROSS)nm TARGET_NM = $(TARGET_CROSS)nm
TARGET_OBJCOPY = $(TARGET_CROSS)objcopy
TARGET_OBJDUMP = $(TARGET_CROSS)objdump
TARGET_RANLIB = $(TARGET_CROSS)ranlib TARGET_RANLIB = $(TARGET_CROSS)ranlib
TARGET_READELF = $(TARGET_CROSS)readelf TARGET_READELF = $(TARGET_CROSS)readelf
TARGET_OBJCOPY = $(TARGET_CROSS)objcopy
TARGET_OBJDUMP = $(TARGET_CROSS)objdump
TARGET_STRIP = $(TARGET_CROSS)strip TARGET_STRIP = $(TARGET_CROSS)strip
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
TERM_RED = \033[40;0;31m
TERM_RED_BOLD = \033[40;1;31m
TERM_GREEN = \033[40;0;32m
TERM_GREEN_BOLD = \033[40;1;32m
TERM_YELLOW = \033[40;0;33m
TERM_YELLOW_BOLD= \033[40;1;33m
TERM_NORMAL = \033[0m
# -----------------------------------------------------------------------------
# search path(s) for all prerequisites # search path(s) for all prerequisites
VPATH = $(DEPS_DIR) $(HOST_DEPS_DIR) VPATH = $(DEPS_DIR) $(HOST_DEPS_DIR)
@ -211,48 +196,29 @@ PKG_CONFIG_SYSROOT_DIR=$(TARGET_DIR)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# download archives into download directory PKG_NAME = $(basename $(@F))
DOWNLOAD = wget --no-check-certificate -t3 -T60 -c -P $(DL_DIR) PKG_UPPER = $(call UPPERCASE,$(PKG_NAME))
PKG_LOWER = $(call LOWERCASE,$(PKG_NAME))
# unpack archives into build directory PKG = $(PKG_UPPER)
UNTAR = tar -C $(BUILD_DIR) -xf $(DL_DIR)
UNZIP = unzip -d $(BUILD_DIR) -o $(DL_DIR) PKG_VER = $($(PKG)_VER)
PKG_DIR = $($(PKG)_DIR)
# clean up PKG_SOURCE = $($(PKG)_SOURCE)
REMOVE = rm -rf $(BUILD_DIR) PKG_SITE = $($(PKG)_SITE)
PKG_PATCH = $($(PKG)_PATCH)
# apply patches
PATCH = patch -p1 -i $(PATCHES) PKG_BUILD_DIR = $(BUILD_DIR)/$(PKG_DIR)
PKG_FILES_DIR = $(PACKAGE_DIR)/$(subst host-,,$(PKG_NAME))/files
# build helper variables PKG_PATCHES_DIR = $(PACKAGE_DIR)/$(subst host-,,$(PKG_NAME))/patches
CD = set -e; cd
CHDIR = $(CD) $(BUILD_DIR)
MKDIR = mkdir -p $(BUILD_DIR)
CPDIR = cp -a -t $(BUILD_DIR) $(DL_DIR)
#TOUCH = @touch $(DEPS_DIR)/$(@)
TOUCH = @touch $(if $(findstring host-,$(@)),$(HOST_DEPS_DIR),$(DEPS_DIR))/$(@)
SED = $(shell which sed || type -p sed) -i -e
INSTALL = install
INSTALL_DATA = $(INSTALL) -m 0644
INSTALL_EXEC = $(INSTALL) -m 0755
INSTALL_COPY = cp -a
define INSTALL_EXIST # (source, dest)
if [ -d $(dir $(1)) ]; then \
$(INSTALL) -d $(2); \
$(INSTALL_COPY) $(1) $(2); \
fi
endef
GET-GIT-ARCHIVE = $(HELPERS_DIR)/get-git-archive.sh PKG_CHDIR = $(CD) $(PKG_BUILD_DIR)
GET-GIT-SOURCE = $(HELPERS_DIR)/get-git-source.sh
GET-SVN-SOURCE = $(HELPERS_DIR)/get-svn-source.sh
UPDATE-RC.D = $(HELPERS_DIR)/update-rc.d -r $(TARGET_DIR)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
MAKE_OPTS = \ #TARGET_MAKE_ENV = \
# $($(PKG)_MAKE_ENV)
TARGET_MAKE_OPTS = \
CROSS_COMPILE="$(TARGET_CROSS)" \ CROSS_COMPILE="$(TARGET_CROSS)" \
CC="$(TARGET_CC)" \ CC="$(TARGET_CC)" \
GCC="$(TARGET_CC)" \ GCC="$(TARGET_CC)" \
@ -269,31 +235,122 @@ MAKE_OPTS = \
STRIP="$(TARGET_STRIP)" \ STRIP="$(TARGET_STRIP)" \
ARCH=$(TARGET_ARCH) ARCH=$(TARGET_ARCH)
MAKE_ENV = \ #TARGET_MAKE_OPTS += \
$(MAKE_OPTS) \ # $($(PKG)_MAKE_OPTS)
\
#HOST_MAKE_ENV = \
# $($(PKG)_MAKE_ENV)
#HOST_MAKE_OPTS += \
# $($(PKG)_MAKE_OPTS)
# -----------------------------------------------------------------------------
TARGET_CONFIGURE_ENV = \
$(TARGET_MAKE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \ CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="$(TARGET_CPPFLAGS)" \ CPPFLAGS="$(TARGET_CPPFLAGS)" \
CXXFLAGS="$(TARGET_CXXFLAGS)" \ CXXFLAGS="$(TARGET_CXXFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)"
MAKE_ENV += \ TARGET_CONFIGURE_ENV += \
PKG_CONFIG=$(PKG_CONFIG) \ PKG_CONFIG=$(PKG_CONFIG) \
PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" \ PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" \
PKG_CONFIG_SYSROOT_DIR=$(PKG_CONFIG_SYSROOT_DIR) PKG_CONFIG_SYSROOT_DIR=$(PKG_CONFIG_SYSROOT_DIR)
CONFIGURE_OPTS = \ TARGET_CONFIGURE_ENV += \
$($(PKG)_CONF_ENV)
TARGET_CONFIGURE_OPTS = \
--build=$(BUILD) \ --build=$(BUILD) \
--host=$(TARGET) \ --host=$(TARGET) \
--target=$(TARGET) \ --target=$(TARGET) \
\ \
--program-prefix= \ --program-prefix="" \
--program-suffix= --program-suffix="" \
\
--prefix=$(prefix) \
--exec_prefix=$(exec_prefix) \
--sysconfdir=$(sysconfdir) \
--localstatedir=$(localstatedir) \
\
--mandir=$(REMOVE_mandir) \
--infodir=$(REMOVE_infodir)
TARGET_CONFIGURE_OPTS += \
$($(PKG)_CONF_OPTS)
#HOST_CONFIGURE_ENV = \
# $($(PKG)_CONF_ENV)
#HOST_CONFIGURE_OPTS = \
# $($(PKG)_CONF_OPTS)
CONFIGURE = \ CONFIGURE = \
if [ "$($(PKG)_AUTORECONF)" == "YES" ]; then \
$(call MESSAGE,"Autoreconfiguring"); \
$($(PKG)_AUTORECONF_ENV) autoreconf -fi $($(PKG)_AUTORECONF_OPTS); \
fi; \
test -f ./configure || ./autogen.sh && \ test -f ./configure || ./autogen.sh && \
$(MAKE_ENV) \ CONFIG_SITE=/dev/null \
./configure $(CONFIGURE_OPTS) $(TARGET_CONFIGURE_ENV) ./configure $(TARGET_CONFIGURE_OPTS)
# -----------------------------------------------------------------------------
TARGET_CMAKE_ENV = \
$($(PKG)_CONF_ENV)
TARGET_CMAKE_OPTS = \
--no-warn-unused-cli
TARGET_CMAKE_OPTS += \
-DENABLE_STATIC=OFF \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_DOC=OFF \
-DBUILD_DOCS=OFF \
-DBUILD_EXAMPLE=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_TEST=OFF \
-DBUILD_TESTS=OFF \
-DBUILD_TESTING=OFF \
-DCMAKE_BUILD_TYPE="None" \
-DCMAKE_SYSTEM_NAME="Linux" \
-DCMAKE_SYSTEM_PROCESSOR="$(TARGET_ARCH)" \
-DCMAKE_INSTALL_PREFIX="$(prefix)" \
-DCMAKE_INSTALL_DOCDIR="$(REMOVE_docdir)" \
-DCMAKE_INSTALL_MANDIR="$(REMOVE_mandir)" \
-DCMAKE_PREFIX_PATH="$(TARGET_DIR)" \
-DCMAKE_INCLUDE_PATH="$(TARGET_includedir)" \
-DCMAKE_C_COMPILER="$(TARGET_CC)" \
-DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -DNDEBUG" \
-DCMAKE_CPP_COMPILER="$(TARGET_CPP)" \
-DCMAKE_CPP_FLAGS="$(TARGET_CFLAGS) -DNDEBUG" \
-DCMAKE_CXX_COMPILER="$(TARGET_CXX)" \
-DCMAKE_CXX_FLAGS="$(TARGET_CFLAGS) -DNDEBUG" \
-DCMAKE_LINKER="$(TARGET_LD)" \
-DCMAKE_AR="$(TARGET_AR)" \
-DCMAKE_AS="$(TARGET_AS)" \
-DCMAKE_NM="$(TARGET_NM)" \
-DCMAKE_OBJCOPY="$(TARGET_OBJCOPY)" \
-DCMAKE_OBJDUMP="$(TARGET_OBJDUMP)" \
-DCMAKE_RANLIB="$(TARGET_RANLIB)" \
-DCMAKE_READELF="$(TARGET_READELF)" \
-DCMAKE_STRIP="$(TARGET_STRIP)"
TARGET_CMAKE_OPTS += \
$($(PKG)_CONF_OPTS)
#HOST_CMAKE_ENV = \
# $($(PKG)_CONF_ENV)
#HOST_CMAKE_OPTS = \
# $($(PKG)_CONF_OPTS)
CMAKE = \
rm -f CMakeCache.txt; \
$(TARGET_CMAKE_ENV) cmake $(TARGET_CMAKE_OPTS)
# -----------------------------------------------------------------------------
define meson-cross-config # (dest dir) define meson-cross-config # (dest dir)
mkdir -p $(1) mkdir -p $(1)
@ -329,8 +386,6 @@ define meson-cross-config # (dest dir)
) > $(1)/meson-cross.config ) > $(1)/meson-cross.config
endef endef
# -----------------------------------------------------------------------------
MESON_CONFIGURE = \ MESON_CONFIGURE = \
$(call meson-cross-config,$(PKG_BUILD_DIR)/build); \ $(call meson-cross-config,$(PKG_BUILD_DIR)/build); \
unset CC CXX CPP LD AR NM STRIP; \ unset CC CXX CPP LD AR NM STRIP; \
@ -349,39 +404,6 @@ NINJA_INSTALL = DESTDIR=$(TARGET_DIR) \
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
CMAKE_OPTS = \
-DBUILD_SHARED_LIBS=ON \
-DENABLE_STATIC=OFF \
-DCMAKE_BUILD_TYPE="None" \
-DCMAKE_SYSTEM_NAME="Linux" \
-DCMAKE_SYSTEM_PROCESSOR="$(TARGET_ARCH)" \
-DCMAKE_INSTALL_PREFIX="$(prefix)" \
-DCMAKE_INSTALL_DOCDIR="$(REMOVE_docdir)" \
-DCMAKE_INSTALL_MANDIR="$(REMOVE_mandir)" \
-DCMAKE_PREFIX_PATH="$(TARGET_DIR)" \
-DCMAKE_INCLUDE_PATH="$(TARGET_includedir)" \
-DCMAKE_C_COMPILER="$(TARGET_CC)" \
-DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -DNDEBUG" \
-DCMAKE_CPP_COMPILER="$(TARGET_CPP)" \
-DCMAKE_CPP_FLAGS="$(TARGET_CFLAGS) -DNDEBUG" \
-DCMAKE_CXX_COMPILER="$(TARGET_CXX)" \
-DCMAKE_CXX_FLAGS="$(TARGET_CFLAGS) -DNDEBUG" \
-DCMAKE_LINKER="$(TARGET_LD)" \
-DCMAKE_AR="$(TARGET_AR)" \
-DCMAKE_AS="$(TARGET_AS)" \
-DCMAKE_NM="$(TARGET_NM)" \
-DCMAKE_OBJCOPY="$(TARGET_OBJCOPY)" \
-DCMAKE_OBJDUMP="$(TARGET_OBJDUMP)" \
-DCMAKE_RANLIB="$(TARGET_RANLIB)" \
-DCMAKE_READELF="$(TARGET_READELF)" \
-DCMAKE_STRIP="$(TARGET_STRIP)"
CMAKE = \
rm -f CMakeCache.txt; \
cmake --no-warn-unused-cli $(CMAKE_OPTS)
# -----------------------------------------------------------------------------
GITHUB = https://github.com GITHUB = https://github.com
GITHUB_SSH = git@github.com GITHUB_SSH = git@github.com
BITBUCKET = https://bitbucket.org BITBUCKET = https://bitbucket.org
@ -390,20 +412,20 @@ BITBUCKET_SSH = git@bitbucket.org
GNU_MIRROR = http://ftp.gnu.org/pub/gnu GNU_MIRROR = http://ftp.gnu.org/pub/gnu
KERNEL_MIRROR = https://cdn.kernel.org/pub KERNEL_MIRROR = https://cdn.kernel.org/pub
NI-PUBLIC = $(GITHUB)/neutrino-images NI_PUBLIC = $(GITHUB)/neutrino-images
NI-PRIVATE = $(BITBUCKET_SSH):neutrino-images NI_PRIVATE = $(BITBUCKET_SSH):neutrino-images
NI-NEUTRINO = ni-neutrino NI_NEUTRINO = ni-neutrino
NI-NEUTRINO-PLUGINS = ni-neutrino-plugins NI_NEUTRINO_PLUGINS = ni-neutrino-plugins
BUILD-GENERIC-PC = build-generic-pc BUILD_GENERIC_PC = build-generic-pc
NI-BUILD-GENERIC-PC = ni-build-generic-pc NI_BUILD_GENERIC_PC = ni-build-generic-pc
NI-DRIVERS-BIN = ni-drivers-bin NI_DRIVERS_BIN = ni-drivers-bin
NI-FFMPEG = ni-ffmpeg NI_FFMPEG = ni-ffmpeg
NI-LIBSTB-HAL = ni-libstb-hal NI_LIBSTB_HAL = ni-libstb-hal
NI-LINUX-KERNEL = ni-linux-kernel NI_LINUX_KERNEL = ni-linux-kernel
NI-LOGO-STUFF = ni-logo-stuff NI_LOGO_STUFF = ni-logo-stuff
NI-OFGWRITE = ni-ofgwrite NI_OFGWRITE = ni-ofgwrite
NI-OPENTHREADS = ni-openthreads NI_OPENTHREADS = ni-openthreads
NI-RTMPDUMP = ni-rtmpdump NI_RTMPDUMP = ni-rtmpdump
NI-STREAMRIPPER = ni-streamripper NI_STREAMRIPPER = ni-streamripper

12
make/environment-image.mk

@ -35,22 +35,22 @@ IMAGE_SUMMARIZE = yes
IMAGE_NEW = no IMAGE_NEW = no
# Beta/Release Server # Beta/Release Server
NI-SERVER = http://neutrino-images.de/neutrino-images NI_SERVER = http://neutrino-images.de/neutrino-images
ifeq ($(IMAGE_TYPE),0) ifeq ($(IMAGE_TYPE),0)
# Release # Release
NI-SUBDIR = release NI_SUBDIR = release
IMAGE_TYPE_STRING = release IMAGE_TYPE_STRING = release
else ifeq ($(IMAGE_TYPE),1) else ifeq ($(IMAGE_TYPE),1)
# Beta # Beta
NI-SUBDIR = beta NI_SUBDIR = beta
IMAGE_TYPE_STRING = beta IMAGE_TYPE_STRING = beta
else ifeq ($(IMAGE_TYPE),2) else ifeq ($(IMAGE_TYPE),2)
# Nightly # Nightly
NI-SUBDIR = nightly NI_SUBDIR = nightly
IMAGE_TYPE_STRING = nightly IMAGE_TYPE_STRING = nightly
else else
# Selfmade; just for compatibility; not needed for our builds # Selfmade; just for compatibility; not needed for our builds
NI-SUBDIR = selfmade NI_SUBDIR = selfmade
IMAGE_TYPE_STRING = selfmade IMAGE_TYPE_STRING = selfmade
endif endif
@ -60,7 +60,7 @@ else
IMAGE_DESC ="$(BOXNAME) [$(IMAGE_SUFFIX)] $(shell echo $(IMAGE_TYPE_STRING) | sed 's/.*/\u&/')" IMAGE_DESC ="$(BOXNAME) [$(IMAGE_SUFFIX)] $(shell echo $(IMAGE_TYPE_STRING) | sed 's/.*/\u&/')"
endif endif
IMAGE_SITE = $(NI-SERVER)/$(NI-SUBDIR) IMAGE_SITE = $(NI_SERVER)/$(NI_SUBDIR)
IMAGE_MD5FILE = $(IMAGE_TYPE_STRING)-$(IMAGE_SUFFIX).txt IMAGE_MD5FILE = $(IMAGE_TYPE_STRING)-$(IMAGE_SUFFIX).txt
IMAGE_BUILD_DIR = $(BUILD_DIR)/image-build IMAGE_BUILD_DIR = $(BUILD_DIR)/image-build

124
make/environment-linux.mk

@ -7,24 +7,24 @@ ifeq ($(BOXMODEL),nevis)
KERNEL_VER = 2.6.34.13 KERNEL_VER = 2.6.34.13
KERNEL_DIR = linux-$(KERNEL_VER) KERNEL_DIR = linux-$(KERNEL_VER)
KERNEL_SOURCE = git KERNEL_SOURCE = git
KERNEL_SITE = $(EMPTY) KERNEL_SITE = $(empty)
KERNEL_BRANCH = ni/linux-2.6.34.15 KERNEL_BRANCH = ni/linux-2.6.34.15
KERNEL_DTB = $(EMPTY) KERNEL_DTB = $(empty)
else ifeq ($(BOXMODEL),$(filter $(BOXMODEL),apollo shiner kronos kronos_v2)) else ifeq ($(BOXMODEL),$(filter $(BOXMODEL),apollo shiner kronos kronos_v2))
KERNEL_VER = 3.10.93 KERNEL_VER = 3.10.93
KERNEL_DIR = linux-$(KERNEL_VER) KERNEL_DIR = linux-$(KERNEL_VER)
KERNEL_SOURCE = git KERNEL_SOURCE = git
KERNEL_SITE = $(EMPTY) KERNEL_SITE = $(empty)
KERNEL_BRANCH = ni/linux-3.10.108 KERNEL_BRANCH = ni/linux-3.10.108
ifeq ($(BOXMODEL),$(filter $(BOXMODEL),apollo shiner)) ifeq ($(BOXMODEL),$(filter $(BOXMODEL),apollo shiner))
KERNEL_DTB = $(SOURCE_DIR)/$(NI-DRIVERS-BIN)/$(DRIVERS-BIN_DIR)/kernel-dtb/hd849x.dtb KERNEL_DTB = $(SOURCE_DIR)/$(NI_DRIVERS_BIN)/$(DRIVERS_BIN_DIR)/kernel-dtb/hd849x.dtb
KERNEL_CONFIG = $(CONFIGS)/kernel-apollo.config KERNEL_CONFIG = $(PKG_FILES_DIR)/kernel-apollo.defconfig
else else
KERNEL_DTB = $(SOURCE_DIR)/$(NI-DRIVERS-BIN)/$(DRIVERS-BIN_DIR)/kernel-dtb/en75x1.dtb KERNEL_DTB = $(SOURCE_DIR)/$(NI_DRIVERS_BIN)/$(DRIVERS_BIN_DIR)/kernel-dtb/en75x1.dtb
KERNEL_CONFIG = $(CONFIGS)/kernel-kronos.config KERNEL_CONFIG = $(PKG_FILES_DIR)/kernel-kronos.defconfig
endif endif
else ifeq ($(BOXMODEL),$(filter $(BOXMODEL),hd51 bre2ze4k h7)) else ifeq ($(BOXMODEL),$(filter $(BOXMODEL),hd51 bre2ze4k h7))
@ -33,9 +33,9 @@ else ifeq ($(BOXMODEL),$(filter $(BOXMODEL),hd51 bre2ze4k h7))
KERNEL_SOURCE = linux-$(KERNEL_VER)-arm.tar.gz KERNEL_SOURCE = linux-$(KERNEL_VER)-arm.tar.gz
KERNEL_SITE = http://downloads.mutant-digital.net KERNEL_SITE = http://downloads.mutant-digital.net
KERNEL_BRANCH = $(EMPTY) KERNEL_BRANCH = $(empty)
KERNEL_DTB = $(BUILD_DIR)/$(KERNEL_OBJ)/arch/$(TARGET_ARCH)/boot/dts/bcm7445-bcm97445svmb.dtb KERNEL_DTB = $(BUILD_DIR)/$(KERNEL_OBJ)/arch/$(TARGET_ARCH)/boot/dts/bcm7445-bcm97445svmb.dtb
KERNEL_CONFIG = $(CONFIGS)/kernel-hd5x.config KERNEL_CONFIG = $(PKG_FILES_DIR)/kernel-hd5x.defconfig
BOOT_PARTITION = 1 BOOT_PARTITION = 1
@ -46,9 +46,9 @@ else ifeq ($(BOXMODEL),$(filter $(BOXMODEL),hd60))
KERNEL_SOURCE = linux-$(KERNEL_VER)-$(KERNEL_DATE)-arm.tar.gz KERNEL_SOURCE = linux-$(KERNEL_VER)-$(KERNEL_DATE)-arm.tar.gz
KERNEL_SITE = http://source.mynonpublic.com/gfutures KERNEL_SITE = http://source.mynonpublic.com/gfutures
KERNEL_BRANCH = $(EMPTY) KERNEL_BRANCH = $(empty)
KERNEL_DTB = $(BUILD_DIR)/$(KERNEL_OBJ)/arch/$(TARGET_ARCH)/boot/dts/hi3798mv200.dtb KERNEL_DTB = $(BUILD_DIR)/$(KERNEL_OBJ)/arch/$(TARGET_ARCH)/boot/dts/hi3798mv200.dtb
KERNEL_CONFIG = $(CONFIGS)/kernel-hd6x.config KERNEL_CONFIG = $(PKG_FILES_DIR)/kernel-hd6x.defconfig
BOOT_PARTITION = 4 BOOT_PARTITION = 4
@ -59,9 +59,9 @@ else ifeq ($(BOXMODEL),$(filter $(BOXMODEL),hd61))
KERNEL_SOURCE = linux-$(KERNEL_VER)-$(KERNEL_DATE)-arm.tar.gz KERNEL_SOURCE = linux-$(KERNEL_VER)-$(KERNEL_DATE)-arm.tar.gz
KERNEL_SITE = http://source.mynonpublic.com/gfutures KERNEL_SITE = http://source.mynonpublic.com/gfutures
KERNEL_BRANCH = $(EMPTY) KERNEL_BRANCH = $(empty)
KERNEL_DTB = $(BUILD_DIR)/$(KERNEL_OBJ)/arch/$(TARGET_ARCH)/boot/dts/hi3798mv200.dtb KERNEL_DTB = $(BUILD_DIR)/$(KERNEL_OBJ)/arch/$(TARGET_ARCH)/boot/dts/hi3798mv200.dtb
KERNEL_CONFIG = $(CONFIGS)/kernel-hd6x.config KERNEL_CONFIG = $(PKG_FILES_DIR)/kernel-hd6x.defconfig
BOOT_PARTITION = 4 BOOT_PARTITION = 4
@ -71,13 +71,13 @@ else ifeq ($(BOXMODEL),vusolo4k)
KERNEL_SOURCE = stblinux-3.14-1.8.tar.bz2 KERNEL_SOURCE = stblinux-3.14-1.8.tar.bz2
KERNEL_SITE = http://code.vuplus.com/download/release/kernel KERNEL_SITE = http://code.vuplus.com/download/release/kernel
KERNEL_BRANCH = $(EMPTY) KERNEL_BRANCH = $(empty)
KERNEL_DTB = $(EMPTY) KERNEL_DTB = $(empty)
VMLINUZ-INITRD_VER = 20190911 VMLINUZ_INITRD_VER = 20190911
VMLINUZ-INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ-INITRD_VER).tar.gz VMLINUZ_INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ_INITRD_VER).tar.gz
VMLINUZ-INITRD_SITE = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads VMLINUZ_INITRD_SITE = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
VMLINUZ-INITRD = vmlinuz-initrd-7366c0 VMLINUZ_INITRD = vmlinuz-initrd-7366c0
BOOT_PARTITION = 1 BOOT_PARTITION = 1
@ -87,13 +87,13 @@ else ifeq ($(BOXMODEL),vuduo4k)
KERNEL_SOURCE = stblinux-4.1-1.17.tar.bz2 KERNEL_SOURCE = stblinux-4.1-1.17.tar.bz2
KERNEL_SITE = http://code.vuplus.com/download/release/kernel KERNEL_SITE = http://code.vuplus.com/download/release/kernel
KERNEL_BRANCH = $(EMPTY) KERNEL_BRANCH = $(empty)
KERNEL_DTB = $(EMPTY) KERNEL_DTB = $(empty)
VMLINUZ-INITRD_VER = 20190911 VMLINUZ_INITRD_VER = 20190911
VMLINUZ-INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ-INITRD_VER).tar.gz VMLINUZ_INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ_INITRD_VER).tar.gz
VMLINUZ-INITRD_SITE = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads VMLINUZ_INITRD_SITE = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
VMLINUZ-INITRD = vmlinuz-initrd-7278b1 VMLINUZ_INITRD = vmlinuz-initrd-7278b1
BOOT_PARTITION = 6 BOOT_PARTITION = 6
@ -103,13 +103,13 @@ else ifeq ($(BOXMODEL),vuduo4kse)
KERNEL_SOURCE = stblinux-4.1-1.17.tar.bz2 KERNEL_SOURCE = stblinux-4.1-1.17.tar.bz2
KERNEL_SITE = http://code.vuplus.com/download/release/kernel KERNEL_SITE = http://code.vuplus.com/download/release/kernel
KERNEL_BRANCH = $(EMPTY) KERNEL_BRANCH = $(empty)
KERNEL_DTB = $(EMPTY) KERNEL_DTB = $(empty)
VMLINUZ-INITRD_VER = 20201010 VMLINUZ_INITRD_VER = 20201010
VMLINUZ-INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ-INITRD_VER).tar.gz VMLINUZ_INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ_INITRD_VER).tar.gz
VMLINUZ-INITRD_SITE = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads VMLINUZ_INITRD_SITE = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
VMLINUZ-INITRD = vmlinuz-initrd-7445d0 VMLINUZ_INITRD = vmlinuz-initrd-7445d0
BOOT_PARTITION = 6 BOOT_PARTITION = 6
@ -119,13 +119,13 @@ else ifeq ($(BOXMODEL),vuultimo4k)
KERNEL_SOURCE = stblinux-3.14-1.12.tar.bz2 KERNEL_SOURCE = stblinux-3.14-1.12.tar.bz2
KERNEL_SITE = http://code.vuplus.com/download/release/kernel KERNEL_SITE = http://code.vuplus.com/download/release/kernel
KERNEL_BRANCH = $(EMPTY) KERNEL_BRANCH = $(empty)
KERNEL_DTB = $(EMPTY) KERNEL_DTB = $(empty)
VMLINUZ-INITRD_VER = 20190911 VMLINUZ_INITRD_VER = 20190911
VMLINUZ-INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ-INITRD_VER).tar.gz VMLINUZ_INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ_INITRD_VER).tar.gz
VMLINUZ-INITRD_SITE = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads VMLINUZ_INITRD_SITE = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
VMLINUZ-INITRD = vmlinuz-initrd-7445d0 VMLINUZ_INITRD = vmlinuz-initrd-7445d0
BOOT_PARTITION = 1 BOOT_PARTITION = 1
@ -135,13 +135,13 @@ else ifeq ($(BOXMODEL),vuzero4k)
KERNEL_SOURCE = stblinux-4.1-1.9.tar.bz2 KERNEL_SOURCE = stblinux-4.1-1.9.tar.bz2
KERNEL_SITE = http://code.vuplus.com/download/release/kernel KERNEL_SITE = http://code.vuplus.com/download/release/kernel
KERNEL_BRANCH = $(EMPTY) KERNEL_BRANCH = $(empty)
KERNEL_DTB = $(EMPTY) KERNEL_DTB = $(empty)
VMLINUZ-INITRD_VER = 20190911 VMLINUZ_INITRD_VER = 20190911
VMLINUZ-INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ-INITRD_VER).tar.gz VMLINUZ_INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ_INITRD_VER).tar.gz
VMLINUZ-INITRD_SITE = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads VMLINUZ_INITRD_SITE = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
VMLINUZ-INITRD = vmlinuz-initrd-7260a0 VMLINUZ_INITRD = vmlinuz-initrd-7260a0
BOOT_PARTITION = 4 BOOT_PARTITION = 4
@ -151,13 +151,13 @@ else ifeq ($(BOXMODEL),vuuno4k)
KERNEL_SOURCE = stblinux-3.14-1.12.tar.bz2 KERNEL_SOURCE = stblinux-3.14-1.12.tar.bz2
KERNEL_SITE = http://code.vuplus.com/download/release/kernel KERNEL_SITE = http://code.vuplus.com/download/release/kernel
KERNEL_BRANCH = $(EMPTY) KERNEL_BRANCH = $(empty)
KERNEL_DTB = $(EMPTY) KERNEL_DTB = $(empty)
VMLINUZ-INITRD_VER = 20191010 VMLINUZ_INITRD_VER = 20191010
VMLINUZ-INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ-INITRD_VER).tar.gz VMLINUZ_INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ_INITRD_VER).tar.gz
VMLINUZ-INITRD_SITE = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads VMLINUZ_INITRD_SITE = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
VMLINUZ-INITRD = vmlinuz-initrd-7439b0 VMLINUZ_INITRD = vmlinuz-initrd-7439b0
BOOT_PARTITION = 1 BOOT_PARTITION = 1
@ -167,13 +167,13 @@ else ifeq ($(BOXMODEL),vuuno4kse)
KERNEL_SOURCE = stblinux-4.1-1.9.tar.bz2 KERNEL_SOURCE = stblinux-4.1-1.9.tar.bz2
KERNEL_SITE = http://code.vuplus.com/download/release/kernel KERNEL_SITE = http://code.vuplus.com/download/release/kernel
KERNEL_BRANCH = $(EMPTY) KERNEL_BRANCH = $(empty)
KERNEL_DTB = $(EMPTY) KERNEL_DTB = $(empty)
VMLINUZ-INITRD_VER = 20191010 VMLINUZ_INITRD_VER = 20191010
VMLINUZ-INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ-INITRD_VER).tar.gz VMLINUZ_INITRD_SOURCE = vmlinuz-initrd_$(BOXMODEL)_$(VMLINUZ_INITRD_VER).tar.gz
VMLINUZ-INITRD_SITE = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads VMLINUZ_INITRD_SITE = https://bitbucket.org/max_10/vmlinuz-initrd-$(BOXMODEL)/downloads
VMLINUZ-INITRD = vmlinuz-initrd-7439b0 VMLINUZ_INITRD = vmlinuz-initrd-7439b0
BOOT_PARTITION = 1 BOOT_PARTITION = 1
@ -183,8 +183,8 @@ else ifeq ($(BOXMODEL),vuduo)
KERNEL_SOURCE = stblinux-$(KERNEL_VER).tar.bz2 KERNEL_SOURCE = stblinux-$(KERNEL_VER).tar.bz2
KERNEL_SITE = http://code.vuplus.com/download/release/kernel KERNEL_SITE = http://code.vuplus.com/download/release/kernel
KERNEL_BRANCH = $(EMPTY) KERNEL_BRANCH = $(empty)
KERNEL_DTB = $(EMPTY) KERNEL_DTB = $(empty)
endif endif
@ -194,7 +194,7 @@ KERNEL_OBJ = linux-$(KERNEL_VER)-obj
KERNEL_MODULES = linux-$(KERNEL_VER)-modules KERNEL_MODULES = linux-$(KERNEL_VER)-modules
KERNEL_HEADERS = linux-$(KERNEL_VER)-headers KERNEL_HEADERS = linux-$(KERNEL_VER)-headers
KERNEL_CONFIG ?= $(CONFIGS)/kernel-$(BOXMODEL).config KERNEL_CONFIG ?= $(PKG_FILES_DIR)/kernel-$(BOXMODEL).defconfig
KERNEL_NAME = NI $(shell echo $(BOXFAMILY) | sed 's/.*/\u&/') Kernel KERNEL_NAME = NI $(shell echo $(BOXFAMILY) | sed 's/.*/\u&/') Kernel
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -212,7 +212,7 @@ KERNEL_VMLINUX = $(BUILD_DIR)/$(KERNEL_OBJ)/vmlinux
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
KERNEL_MAKEVARS = \ KERNEL_MAKE_VARS = \
ARCH=$(TARGET_ARCH) \ ARCH=$(TARGET_ARCH) \
CROSS_COMPILE=$(TARGET_CROSS) \ CROSS_COMPILE=$(TARGET_CROSS) \
INSTALL_MOD_PATH=$(BUILD_DIR)/$(KERNEL_MODULES) \ INSTALL_MOD_PATH=$(BUILD_DIR)/$(KERNEL_MODULES) \
@ -221,7 +221,7 @@ KERNEL_MAKEVARS = \
O=$(BUILD_DIR)/$(KERNEL_OBJ) O=$(BUILD_DIR)/$(KERNEL_OBJ)
# Compatibility variables # Compatibility variables
KERNEL_MAKEVARS += \ KERNEL_MAKE_VARS += \
KVER=$(KERNEL_VER) \ KVER=$(KERNEL_VER) \
KSRC=$(BUILD_DIR)/$(KERNEL_DIR) KSRC=$(BUILD_DIR)/$(KERNEL_DIR)
@ -233,9 +233,9 @@ else
KERNEL_IMAGE = zImage KERNEL_IMAGE = zImage
endif endif
KERNEL_MAKEOPTS = $(KERNEL_IMAGE) modules KERNEL_MAKE_TARGETS = $(KERNEL_IMAGE)
# build also the kernel-dtb for arm-hd5x and arm-hd6x # build also the kernel-dtb for arm-hd5x and arm-hd6x
ifeq ($(BOXMODEL),$(filter $(BOXMODEL),hd51 bre2ze4k h7 hd60 hd61)) ifeq ($(BOXMODEL),$(filter $(BOXMODEL),hd51 bre2ze4k h7 hd60 hd61))
KERNEL_MAKEOPTS += $(notdir $(KERNEL_DTB)) KERNEL_MAKE_TARGETS += $(notdir $(KERNEL_DTB))
endif endif

6
make/environment-update.mk

@ -32,7 +32,7 @@ UPDATE_TYPE = U
# Addon = A # Addon = A
# Text = T # Text = T
UPDATE_SITE = $(NI-SERVER)/$(NI-SUBDIR) UPDATE_SITE = $(NI_SERVER)/$(NI_SUBDIR)
UPDATE_MD5FILE = update.txt UPDATE_MD5FILE = update.txt
UPDATE_MD5FILE-BOXSERIES= update-$(BOXTYPE_SC)-$(BOXSERIES).txt UPDATE_MD5FILE_BOXSERIES= update-$(BOXTYPE_SC)-$(BOXSERIES).txt
UPDATE_MD5FILE-BOXMODEL = update-$(BOXTYPE_SC)-$(BOXMODEL).txt UPDATE_MD5FILE_BOXMODEL = update-$(BOXTYPE_SC)-$(BOXMODEL).txt

2
make/flash-images.mk

@ -362,7 +362,7 @@ flash-image-vuplus-multi: | $(IMAGE_DIR)
rm -rf $(IMAGE_BUILD_DIR) rm -rf $(IMAGE_BUILD_DIR)
mkdir -p $(IMAGE_BUILD_DIR)/$(IMAGE_SUBDIR) mkdir -p $(IMAGE_BUILD_DIR)/$(IMAGE_SUBDIR)
cp $(TARGET_FILES)/splash-images/ni-splash.bmp $(IMAGE_BUILD_DIR)/$(IMAGE_SUBDIR)/splash_auto.bin cp $(TARGET_FILES)/splash-images/ni-splash.bmp $(IMAGE_BUILD_DIR)/$(IMAGE_SUBDIR)/splash_auto.bin
cp $(BUILD_DIR)/$(VMLINUZ-INITRD) $(IMAGE_BUILD_DIR)/$(IMAGE_SUBDIR)/initrd_auto.bin cp $(BUILD_DIR)/$(VMLINUZ_INITRD) $(IMAGE_BUILD_DIR)/$(IMAGE_SUBDIR)/initrd_auto.bin
echo Dummy for update. > $(IMAGE_BUILD_DIR)/$(IMAGE_SUBDIR)/kernel_auto.bin echo Dummy for update. > $(IMAGE_BUILD_DIR)/$(IMAGE_SUBDIR)/kernel_auto.bin
cp $(KERNEL_ZIMAGE) $(IMAGE_BUILD_DIR)/$(IMAGE_SUBDIR)/kernel1_auto.bin cp $(KERNEL_ZIMAGE) $(IMAGE_BUILD_DIR)/$(IMAGE_SUBDIR)/kernel1_auto.bin
cp $(KERNEL_ZIMAGE) $(IMAGE_BUILD_DIR)/$(IMAGE_SUBDIR)/kernel2_auto.bin cp $(KERNEL_ZIMAGE) $(IMAGE_BUILD_DIR)/$(IMAGE_SUBDIR)/kernel2_auto.bin

44
make/flash-updates.mk

@ -45,7 +45,7 @@ ifneq ($(DEBUG),yes)
find $(UPDATE_INST_DIR)/bin -type f ! -name *.sh -print0 | xargs -0 $(TARGET_STRIP) || true find $(UPDATE_INST_DIR)/bin -type f ! -name *.sh -print0 | xargs -0 $(TARGET_STRIP) || true
endif endif
$(MAKE) u-update-bin \ $(MAKE) u-update-bin \
UPDATE_MD5FILE=$(UPDATE_MD5FILE-BOXSERIES) UPDATE_MD5FILE=$(UPDATE_MD5FILE_BOXSERIES)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -63,7 +63,7 @@ ifeq ($(PERSISTENT_VAR_PARTITION),yes)
mv $(UPDATE_INST_DIR)/var $(UPDATE_INST_DIR)/var_init mv $(UPDATE_INST_DIR)/var $(UPDATE_INST_DIR)/var_init
endif endif
$(MAKE) u-update-bin \ $(MAKE) u-update-bin \
UPDATE_MD5FILE=$(UPDATE_MD5FILE-BOXSERIES) UPDATE_MD5FILE=$(UPDATE_MD5FILE_BOXSERIES)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -80,30 +80,30 @@ u-update.urls: update.urls
u-pr-auto-timer: u-pr-auto-timer:
$(MAKE) u-init $(MAKE) u-init
$(INSTALL_EXEC) $(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS)/scripts-sh/plugins/pr-auto-timer/update-ctrl/preinstall.sh $(PREINSTALL_SH) $(INSTALL_EXEC) $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-sh/plugins/pr-auto-timer/update-ctrl/preinstall.sh $(PREINSTALL_SH)
$(INSTALL_EXEC) $(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS)/scripts-sh/plugins/pr-auto-timer/update-ctrl/postinstall.sh $(POSTINSTALL_SH) $(INSTALL_EXEC) $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-sh/plugins/pr-auto-timer/update-ctrl/postinstall.sh $(POSTINSTALL_SH)
mkdir -p $(UPDATE_INST_DIR)/share/tuxbox/neutrino/plugins mkdir -p $(UPDATE_INST_DIR)/share/tuxbox/neutrino/plugins
$(INSTALL_EXEC) $(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS)/scripts-sh/plugins/pr-auto-timer/pr-auto-timer.sh $(UPDATE_INST_DIR)/share/tuxbox/neutrino/plugins/ $(INSTALL_EXEC) $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-sh/plugins/pr-auto-timer/pr-auto-timer.sh $(UPDATE_INST_DIR)/share/tuxbox/neutrino/plugins/
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS)/scripts-sh/plugins/pr-auto-timer/pr-auto-timer.cfg $(UPDATE_INST_DIR)/share/tuxbox/neutrino/plugins/ $(INSTALL_DATA) $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-sh/plugins/pr-auto-timer/pr-auto-timer.cfg $(UPDATE_INST_DIR)/share/tuxbox/neutrino/plugins/
$(INSTALL_EXEC) $(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS)/scripts-sh/plugins/pr-auto-timer/pr-auto-timer $(UPDATE_INST_DIR)/share/tuxbox/neutrino/plugins/ $(INSTALL_EXEC) $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-sh/plugins/pr-auto-timer/pr-auto-timer $(UPDATE_INST_DIR)/share/tuxbox/neutrino/plugins/
$(INSTALL_EXEC) $(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS)/scripts-sh/plugins/pr-auto-timer/pr-auto-timer_hint.png $(UPDATE_INST_DIR)/share/tuxbox/neutrino/plugins/ $(INSTALL_EXEC) $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-sh/plugins/pr-auto-timer/pr-auto-timer_hint.png $(UPDATE_INST_DIR)/share/tuxbox/neutrino/plugins/
$(INSTALL_EXEC) $(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS)/scripts-sh/plugins/pr-auto-timer/auto-record-cleaner $(UPDATE_INST_DIR)/share/tuxbox/neutrino/plugins/ $(INSTALL_EXEC) $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-sh/plugins/pr-auto-timer/auto-record-cleaner $(UPDATE_INST_DIR)/share/tuxbox/neutrino/plugins/
mkdir -p $(UPDATE_INST_DIR)/var/tuxbox/config mkdir -p $(UPDATE_INST_DIR)/var/tuxbox/config
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS)/scripts-sh/plugins/pr-auto-timer/pr-auto-timer.conf.template $(UPDATE_INST_DIR)/var/tuxbox/config/ $(INSTALL_DATA) $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-sh/plugins/pr-auto-timer/pr-auto-timer.conf.template $(UPDATE_INST_DIR)/var/tuxbox/config/
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS)/scripts-sh/plugins/pr-auto-timer/pr-auto-timer.rules.template $(UPDATE_INST_DIR)/var/tuxbox/config/ $(INSTALL_DATA) $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-sh/plugins/pr-auto-timer/pr-auto-timer.rules.template $(UPDATE_INST_DIR)/var/tuxbox/config/
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS)/scripts-sh/plugins/pr-auto-timer/auto-record-cleaner.conf.template $(UPDATE_INST_DIR)/var/tuxbox/config/ $(INSTALL_DATA) $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-sh/plugins/pr-auto-timer/auto-record-cleaner.conf.template $(UPDATE_INST_DIR)/var/tuxbox/config/
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS)/scripts-sh/plugins/pr-auto-timer/auto-record-cleaner.rules.template $(UPDATE_INST_DIR)/var/tuxbox/config/ $(INSTALL_DATA) $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-sh/plugins/pr-auto-timer/auto-record-cleaner.rules.template $(UPDATE_INST_DIR)/var/tuxbox/config/
PKG_VERSION=`cat $(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS)/scripts-sh/plugins/pr-auto-timer/pr-auto-timer | grep '^VERSION' | cut -d= -f2`; \ PKG_VERSION=`cat $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-sh/plugins/pr-auto-timer/pr-auto-timer | grep '^VERSION' | cut -d= -f2`; \
$(MAKE) u-update-bin \ $(MAKE) u-update-bin \
UPDATE_MD5FILE=pr-auto-timer.txt \ UPDATE_MD5FILE=pr-auto-timer.txt \
UPDATE_SITE=$(NI-SERVER)/plugins/pr-auto-timer \ UPDATE_SITE=$(NI_SERVER)/plugins/pr-auto-timer \
UPDATE_NAME=pr-auto-timer_$${PKG_VERSION//./} \ UPDATE_NAME=pr-auto-timer_$${PKG_VERSION//./} \
UPDATE_DESC=Auto-Timer \ UPDATE_DESC=Auto-Timer \
UPDATE_VERSION=$$PKG_VERSION UPDATE_VERSION=$$PKG_VERSION
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
CHANNELLISTS_SITE = $(NI-SERVER)/channellists CHANNELLISTS_SITE = $(NI_SERVER)/channellists
CHANNELLISTS_MD5FILE = lists.txt CHANNELLISTS_MD5FILE = lists.txt
channellists: matze-192 matze-192-130 channellists: matze-192 matze-192-130
@ -125,11 +125,11 @@ matze-192-130:
done done
# sync sat-names with current satellites.xml # sync sat-names with current satellites.xml
# Astra 19.2 # Astra 19.2
P192=`grep -m 1 'position=\"192\"' $(SOURCE_DIR)/$(NI-NEUTRINO)/data/config/satellites.xml`; \ P192=`grep -m 1 'position=\"192\"' $(SOURCE_DIR)/$(NI_NEUTRINO)/data/config/satellites.xml`; \
P192=`echo $$P192`; \ P192=`echo $$P192`; \
$(SED) "/position=\"192\"/c\ $$P192" $(UPDATE_INST_DIR)/var/tuxbox/config/zapit/services.xml $(SED) "/position=\"192\"/c\ $$P192" $(UPDATE_INST_DIR)/var/tuxbox/config/zapit/services.xml
# Hotbird 13.0 # Hotbird 13.0
P130=`grep -m 1 'position=\"130\"' $(SOURCE_DIR)/$(NI-NEUTRINO)/data/config/satellites.xml`; \ P130=`grep -m 1 'position=\"130\"' $(SOURCE_DIR)/$(NI_NEUTRINO)/data/config/satellites.xml`; \
P130=`echo $$P130`; \ P130=`echo $$P130`; \
$(SED) "/position=\"130\"/c\ $$P130" $(UPDATE_INST_DIR)/var/tuxbox/config/zapit/services.xml $(SED) "/position=\"130\"/c\ $$P130" $(UPDATE_INST_DIR)/var/tuxbox/config/zapit/services.xml
# #
@ -165,11 +165,11 @@ initial-settings: matze-192
$(MKDIR)/initial $(MKDIR)/initial
$(CHDIR)/initial && \ $(CHDIR)/initial && \
tar -xf $(STAGING_DIR)/updates/matze-192.bin && \ tar -xf $(STAGING_DIR)/updates/matze-192.bin && \
cp temp_inst/inst/var/tuxbox/config/zapit/* $(SOURCE_DIR)/$(NI-NEUTRINO)/data/initial/ cp temp_inst/inst/var/tuxbox/config/zapit/* $(SOURCE_DIR)/$(NI_NEUTRINO)/data/initial/
P192=`grep -m 1 'position=\"192\"' $(SOURCE_DIR)/$(NI-NEUTRINO)/data/config/satellites.xml`; \ P192=`grep -m 1 'position=\"192\"' $(SOURCE_DIR)/$(NI_NEUTRINO)/data/config/satellites.xml`; \
P192=`echo $$P192`; \ P192=`echo $$P192`; \
$(SED) "/position=\"192\"/c\ $$P192" $(SOURCE_DIR)/$(NI-NEUTRINO)/data/initial/services.xml $(SED) "/position=\"192\"/c\ $$P192" $(SOURCE_DIR)/$(NI_NEUTRINO)/data/initial/services.xml
@echo -e "$(TERM_YELLOW)Commit your changes in $(SOURCE_DIR)/$(NI-NEUTRINO)/data/initial$(TERM_NORMAL)" @echo -e "$(TERM_YELLOW)Commit your changes in $(SOURCE_DIR)/$(NI_NEUTRINO)/data/initial$(TERM_NORMAL)"
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------

326
make/host-tools.mk

@ -10,16 +10,16 @@ $(HOST_DIR):
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
host-tools: $(HOST_DIR) \ host-tools: $(BUILD_DIR) $(HOST_DIR) \
host-pkgconf \ host-pkgconf \
$(PKG_CONFIG) \ $(PKG_CONFIG) \
host-mtd-utils \ host-mtd-utils \
host-mkimage \ host-u-boot \
host-zic \ host-zic \
host-parted \ host-parted \
host-dosfstools \ host-dosfstools \
host-mtools \ host-mtools \
host-e2fsprocs \ host-e2fsprogs \
host-lua \ host-lua \
host-luarocks \ host-luarocks \
host-ccache host-ccache
@ -46,18 +46,19 @@ HOST_PKGCONF_SITE = https://distfiles.dereferenced.org/pkgconf
$(DL_DIR)/$(HOST_PKGCONF_SOURCE): $(DL_DIR)/$(HOST_PKGCONF_SOURCE):
$(DOWNLOAD) $(HOST_PKGCONF_SITE)/$(HOST_PKGCONF_SOURCE) $(DOWNLOAD) $(HOST_PKGCONF_SITE)/$(HOST_PKGCONF_SOURCE)
HOST_PKGCONF_CONF_OPTS = \
--prefix=$(HOST_DIR)
host-pkgconf: $(DL_DIR)/$(HOST_PKGCONF_SOURCE) | $(HOST_DIR) pkg-config-preqs host-pkgconf: $(DL_DIR)/$(HOST_PKGCONF_SOURCE) | $(HOST_DIR) pkg-config-preqs
$(REMOVE)/$(HOST_PKGCONF_DIR) $(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(HOST_PKGCONF_SOURCE) $(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(HOST_PKGCONF_DIR); \ $(CHDIR)/$(PKG_DIR); \
$(APPLY_PATCHES); \ $(APPLY_PATCHES); \
./configure \ $($(PKG)_CONF_ENV) ./configure $($(PKG)_CONF_OPTS); \
--prefix=$(HOST_DIR) \
; \
$(MAKE); \ $(MAKE); \
$(MAKE) install $(MAKE) install
$(INSTALL_EXEC) $(PKG_FILES_DIR)/pkg-config.in $(HOST_PKG-CONFIG) $(INSTALL_EXEC) $(PKG_FILES_DIR)/pkg-config.in $(HOST_PKG-CONFIG)
$(REMOVE)/$(HOST_PKGCONF_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -69,85 +70,82 @@ $(PKG_CONFIG): $(PKG_CONFIG_DEPS) | $(HOST_DIR)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
HOST_MTD-UTILS_VER = $(MTD-UTILS_VER) HOST_MTD_UTILS_VER = $(MTD_UTILS_VER)
HOST_MTD-UTILS_DIR = mtd-utils-$(HOST_MTD-UTILS_VER) HOST_MTD_UTILS_DIR = mtd-utils-$(HOST_MTD_UTILS_VER)
HOST_MTD-UTILS_SOURCE = mtd-utils-$(HOST_MTD-UTILS_VER).tar.bz2 HOST_MTD_UTILS_SOURCE = mtd-utils-$(HOST_MTD_UTILS_VER).tar.bz2
HOST_MTD-UTILS_SITE = ftp://ftp.infradead.org/pub/mtd-utils HOST_MTD_UTILS_SITE = ftp://ftp.infradead.org/pub/mtd-utils
#$(DL_DIR)/$(HOST_MTD-UTILS_SOURCE): #$(DL_DIR)/$(HOST_MTD_UTILS_SOURCE):
# $(DOWNLOAD) $(HOST_MTD-UTILS_SITE)/$(HOST_MTD-UTILS_SOURCE) # $(DOWNLOAD) $(HOST_MTD_UTILS_SITE)/$(HOST_MTD_UTILS_SOURCE)
host-mtd-utils: $(DL_DIR)/$(HOST_MTD-UTILS_SOURCE) | $(HOST_DIR) HOST_MTD_UTILS_CONF_ENV = \
$(REMOVE)/$(HOST_MTD-UTILS_DIR)
$(UNTAR)/$(HOST_MTD-UTILS_SOURCE)
$(CHDIR)/$(HOST_MTD-UTILS_DIR); \
./configure \
ZLIB_CFLAGS=" " \ ZLIB_CFLAGS=" " \
ZLIB_LIBS="-lz" \ ZLIB_LIBS="-lz" \
UUID_CFLAGS=" " \ UUID_CFLAGS=" " \
UUID_LIBS="-luuid" \ UUID_LIBS="-luuid"
HOST_MTD_UTILS_CONF_OPTS = \
--prefix= \ --prefix= \
--enable-silent-rules \ --enable-silent-rules \
--without-ubifs \ --without-ubifs \
--without-xattr \ --without-xattr \
--disable-tests \ --disable-tests
; \
host-mtd-utils: $(DL_DIR)/$(HOST_MTD_UTILS_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$($(PKG)_CONF_ENV) ./configure $($(PKG)_CONF_OPTS); \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(HOST_DIR) $(MAKE) install DESTDIR=$(HOST_DIR)
$(REMOVE)/$(HOST_MTD-UTILS_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
HOST_U-BOOT_VER = 2018.09 HOST_U_BOOT_VER = 2018.09
HOST_U-BOOT_DIR = u-boot-$(HOST_U-BOOT_VER) HOST_U_BOOT_DIR = u-boot-$(HOST_U_BOOT_VER)
HOST_U-BOOT_SOURCE = u-boot-$(HOST_U-BOOT_VER).tar.bz2 HOST_U_BOOT_SOURCE = u-boot-$(HOST_U_BOOT_VER).tar.bz2
HOST_U-BOOT_SITE = ftp://ftp.denx.de/pub/u-boot HOST_U_BOOT_SITE = ftp://ftp.denx.de/pub/u-boot
$(DL_DIR)/$(HOST_U_BOOT_SOURCE):
$(DOWNLOAD) $(HOST_U_BOOT_SITE)/$(HOST_U_BOOT_SOURCE)
$(DL_DIR)/$(HOST_U-BOOT_SOURCE): HOST_MKIMAGE = $(HOST_DIR)/bin/mkimage
$(DOWNLOAD) $(HOST_U-BOOT_SITE)/$(HOST_U-BOOT_SOURCE)
host-mkimage: $(HOST_DIR)/bin/mkimage host-u-boot: $(DL_DIR)/$(HOST_U_BOOT_SOURCE) | $(HOST_DIR)
$(HOST_DIR)/bin/mkimage: $(DL_DIR)/$(HOST_U-BOOT_SOURCE) | $(HOST_DIR) $(REMOVE)/$(PKG_DIR)
$(REMOVE)/$(HOST_U-BOOT_DIR) $(UNTAR)/$(PKG_SOURCE)
$(UNTAR)/$(HOST_U-BOOT_SOURCE) $(CHDIR)/$(PKG_DIR); \
$(CHDIR)/$(HOST_U-BOOT_DIR); \
$(MAKE) defconfig; \ $(MAKE) defconfig; \
$(MAKE) silentoldconfig; \ $(MAKE) silentoldconfig; \
$(MAKE) tools-only $(MAKE) tools-only
$(INSTALL_EXEC) -D $(BUILD_DIR)/$(HOST_U-BOOT_DIR)/tools/mkimage $(HOST_DIR)/bin/ $(INSTALL_EXEC) -D $(PKG_BUILD_DIR)/tools/mkimage $(HOST_MKIMAGE)
$(REMOVE)/$(HOST_U-BOOT_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
HOST_TZCODE_VER = 2020d HOST_ZIC_VER = 2020f
HOST_TZCODE_DIR = tzcode$(HOST_TZCODE_VER) HOST_ZIC_DIR = tzcode$(HOST_ZIC_VER)
HOST_TZCODE_SOURCE = tzcode$(HOST_TZCODE_VER).tar.gz HOST_ZIC_SOURCE = tzcode$(HOST_ZIC_VER).tar.gz
HOST_TZCODE_SITE = ftp://ftp.iana.org/tz/releases HOST_ZIC_SITE = ftp://ftp.iana.org/tz/releases
$(DL_DIR)/$(HOST_TZCODE_SOURCE): $(DL_DIR)/$(HOST_ZIC_SOURCE):
$(DOWNLOAD) $(HOST_TZCODE_SITE)/$(HOST_TZCODE_SOURCE) $(DOWNLOAD) $(HOST_ZIC_SITE)/$(HOST_ZIC_SOURCE)
HOST_TZDATA_VER = $(TZDATA_VER)
HOST_TZDATA_DIR = tzdata$(HOST_TZDATA_VER)
HOST_TZDATA_SOURCE = tzdata$(HOST_TZDATA_VER).tar.gz
HOST_TZDATA_SITE = ftp://ftp.iana.org/tz/releases
#$(DL_DIR)/$(HOST_TZDATA_SOURCE):
# $(DOWNLOAD) $(HOST_TZDATA_SITE)/$(HOST_TZDATA_SOURCE)
HOST_ZIC = $(HOST_DIR)/sbin/zic HOST_ZIC = $(HOST_DIR)/sbin/zic
host-zic: $(HOST_ZIC) host-zic: $(DL_DIR)/$(HOST_ZIC_SOURCE) | $(HOST_DIR)
$(HOST_ZIC): $(DL_DIR)/$(HOST_TZDATA_SOURCE) $(DL_DIR)/$(HOST_TZCODE_SOURCE) | $(HOST_DIR) $(REMOVE)/$(PKG_DIR)
$(REMOVE)/$(HOST_TZCODE_DIR) $(MKDIR)/$(PKG_DIR)
$(MKDIR)/$(HOST_TZCODE_DIR) $(CHDIR)/$(PKG_DIR); \
$(CHDIR)/$(HOST_TZCODE_DIR); \ tar -xf $(DL_DIR)/$(PKG_SOURCE); \
tar -xf $(DL_DIR)/$(HOST_TZCODE_SOURCE); \ $(APPLY_PATCHES); \
tar -xf $(DL_DIR)/$(HOST_TZDATA_SOURCE); \
$(MAKE) zic $(MAKE) zic
$(INSTALL_EXEC) -D $(BUILD_DIR)/$(HOST_TZCODE_DIR)/zic $(HOST_ZIC) $(INSTALL_EXEC) -D $(PKG_BUILD_DIR)/zic $(HOST_ZIC)
$(REMOVE)/$(HOST_TZCODE_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -159,25 +157,23 @@ HOST_PARTED_SITE = $(GNU_MIRROR)/parted
#$(DL_DIR)/$(HOST_PARTED_SOURCE): #$(DL_DIR)/$(HOST_PARTED_SOURCE):
# $(DOWNLOAD) $(HOST_PARTED_SITE)/$(HOST_PARTED_SOURCE) # $(DOWNLOAD) $(HOST_PARTED_SITE)/$(HOST_PARTED_SOURCE)
HOST_PARTED_PATCH = parted-device-mapper.patch HOST_PARTED_CONF_OPTS = \
HOST_PARTED_PATCH += parted-sysmacros.patch
host-parted: $(DL_DIR)/$(HOST_PARTED_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(HOST_PARTED_DIR)
$(UNTAR)/$(HOST_PARTED_SOURCE)
$(CHDIR)/$(HOST_PARTED_DIR); \
$(call apply_patches,$(HOST_PARTED_PATCH)); \
./configure \
--prefix= \ --prefix= \
--enable-silent-rules \ --enable-silent-rules \
--enable-static \ --enable-static \
--disable-shared \ --disable-shared \
--disable-device-mapper \ --disable-device-mapper \
--without-readline \ --without-readline
; \
host-parted: $(DL_DIR)/$(HOST_PARTED_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(APPLY_PATCHES); \
$($(PKG)_CONF_ENV) ./configure $($(PKG)_CONF_OPTS); \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(HOST_DIR) $(MAKE) install DESTDIR=$(HOST_DIR)
$(REMOVE)/$(HOST_PARTED_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -190,20 +186,21 @@ HOST_DOSFSTOOLS_SITE = https://github.com/dosfstools/dosfstools/releases/downl
#$(DL_DIR)/$(HOST_DOSFSTOOLS_SOURCE): #$(DL_DIR)/$(HOST_DOSFSTOOLS_SOURCE):
# $(DOWNLOAD) $(HOST_DOSFSTOOLS_SITE)/$(HOST_DOSFSTOOLS_SOURCE) # $(DOWNLOAD) $(HOST_DOSFSTOOLS_SITE)/$(HOST_DOSFSTOOLS_SOURCE)
host-dosfstools: $(DL_DIR)/$(HOST_DOSFSTOOLS_SOURCE) | $(HOST_DIR) HOST_DOSFSTOOLS_CONF_OPTS = \
$(REMOVE)/$(HOST_DOSFSTOOLS_DIR)
$(UNTAR)/$(HOST_DOSFSTOOLS_SOURCE)
$(CHDIR)/$(HOST_DOSFSTOOLS_DIR); \
./configure \
--prefix= \ --prefix= \
--without-udev \ --without-udev
; \
host-dosfstools: $(DL_DIR)/$(HOST_DOSFSTOOLS_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$($(PKG)_CONF_ENV) ./configure $($(PKG)_CONF_OPTS); \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(HOST_DIR) $(MAKE) install DESTDIR=$(HOST_DIR)
ln -sf mkfs.fat $(HOST_DIR)/sbin/mkfs.vfat ln -sf mkfs.fat $(HOST_DIR)/sbin/mkfs.vfat
ln -sf mkfs.fat $(HOST_DIR)/sbin/mkfs.msdos ln -sf mkfs.fat $(HOST_DIR)/sbin/mkfs.msdos
ln -sf mkfs.fat $(HOST_DIR)/sbin/mkdosfs ln -sf mkfs.fat $(HOST_DIR)/sbin/mkdosfs
$(REMOVE)/$(HOST_DOSFSTOOLS_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -216,16 +213,17 @@ HOST_MTOOLS_SITE = $(GNU_MIRROR)/mtools
$(DL_DIR)/$(HOST_MTOOLS_SOURCE): $(DL_DIR)/$(HOST_MTOOLS_SOURCE):
$(DOWNLOAD) $(HOST_MTOOLS_SITE)/$(HOST_MTOOLS_SOURCE) $(DOWNLOAD) $(HOST_MTOOLS_SITE)/$(HOST_MTOOLS_SOURCE)
HOST_MTOOLS_CONF_OPTS = \
--prefix=
host-mtools: $(DL_DIR)/$(HOST_MTOOLS_SOURCE) | $(HOST_DIR) host-mtools: $(DL_DIR)/$(HOST_MTOOLS_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(HOST_MTOOLS_DIR) $(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(HOST_MTOOLS_SOURCE) $(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(HOST_MTOOLS_DIR); \ $(CHDIR)/$(PKG_DIR); \
./configure \ $($(PKG)_CONF_ENV) ./configure $($(PKG)_CONF_OPTS); \
--prefix= \
; \
$(MAKE1); \ $(MAKE1); \
$(MAKE1) install DESTDIR=$(HOST_DIR) $(MAKE1) install DESTDIR=$(HOST_DIR)
$(REMOVE)/$(HOST_MTOOLS_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -238,16 +236,17 @@ HOST_E2FSPROGS_SITE = https://sourceforge.net/projects/e2fsprogs/files/e2fspro
#$(DL_DIR)/$(HOST_E2FSPROGS_SOURCE): #$(DL_DIR)/$(HOST_E2FSPROGS_SOURCE):
# $(DOWNLOAD) $(HOST_E2FSPROGS_SITE)/$(HOST_E2FSPROGS_SOURCE) # $(DOWNLOAD) $(HOST_E2FSPROGS_SITE)/$(HOST_E2FSPROGS_SOURCE)
host-e2fsprocs: $(DL_DIR)/$(HOST_E2FSPROGS_SOURCE) | $(HOST_DIR) HOST_E2FSPROGS_CONF_OPTS = \
$(REMOVE)/$(HOST_E2FSPROGS_DIR) --prefix=
$(UNTAR)/$(HOST_E2FSPROGS_SOURCE)
$(CHDIR)/$(HOST_E2FSPROGS_DIR); \ host-e2fsprogs: $(DL_DIR)/$(HOST_E2FSPROGS_SOURCE) | $(HOST_DIR)
./configure \ $(REMOVE)/$(PKG_DIR)
--prefix= \ $(UNTAR)/$(PKG_SOURCE)
; \ $(CHDIR)/$(PKG_DIR); \
$($(PKG)_CONF_ENV) ./configure $($(PKG)_CONF_OPTS); \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(HOST_DIR) $(MAKE) install DESTDIR=$(HOST_DIR)
$(REMOVE)/$(HOST_E2FSPROGS_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -284,19 +283,20 @@ HOST_NINJA_SITE = $(call github,ninja-build,ninja,v$(HOST_NINJA_VER))
$(DL_DIR)/$(HOST_NINJA_SOURCE): $(DL_DIR)/$(HOST_NINJA_SOURCE):
$(DOWNLOAD) $(HOST_NINJA_SITE)/$(HOST_NINJA_SOURCE) $(DOWNLOAD) $(HOST_NINJA_SITE)/$(HOST_NINJA_SOURCE)
HOST_NINJA_CONF_OPTS = \
-DCMAKE_INSTALL_PREFIX=""
HOST_NINJA = $(HOST_DIR)/bin/ninja HOST_NINJA = $(HOST_DIR)/bin/ninja
host-ninja: $(DL_DIR)/$(HOST_NINJA_SOURCE) | $(HOST_DIR) host-ninja: $(DL_DIR)/$(HOST_NINJA_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(HOST_NINJA_DIR) $(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(HOST_NINJA_SOURCE) $(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(HOST_NINJA_DIR); \ $(CHDIR)/$(PKG_DIR); \
$(APPLY_PATCHES); \ $(APPLY_PATCHES); \
cmake . \ $($(PKG)_CONF_ENV) cmake $($(PKG)_CONF_OPTS); \
-DCMAKE_INSTALL_PREFIX="" \
; \
$(MAKE) $(MAKE)
$(INSTALL_EXEC) -D $(BUILD_DIR)/$(HOST_NINJA_DIR)/ninja $(HOST_NINJA) $(INSTALL_EXEC) -D $(PKG_BUILD_DIR)/ninja $(HOST_NINJA)
$(REMOVE)/$(HOST_NINJA_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -309,14 +309,15 @@ HOST_EXPAT_SITE = https://sourceforge.net/projects/expat/files/expat/$(EXPAT_V
#$(DL_DIR)/$(HOST_EXPAT_SOURCE): #$(DL_DIR)/$(HOST_EXPAT_SOURCE):
# $(DOWNLOAD) $(HOST_EXPAT_SITE)/$(EXPAT_SOURCE) # $(DOWNLOAD) $(HOST_EXPAT_SITE)/$(EXPAT_SOURCE)
HOST_EXPAT_CONF_OPTS = \
--prefix= \
--without-docbook
host-expat: $(DL_DIR)/$(HOST_EXPAT_SOURCE) | $(HOST_DIR) host-expat: $(DL_DIR)/$(HOST_EXPAT_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(HOST_EXPAT_DIR) $(REMOVE)/$(HOST_EXPAT_DIR)
$(UNTAR)/$(HOST_EXPAT_SOURCE) $(UNTAR)/$(HOST_EXPAT_SOURCE)
$(CHDIR)/$(HOST_EXPAT_DIR); \ $(CHDIR)/$(HOST_EXPAT_DIR); \
./configure \ $($(PKG)_CONF_ENV) ./configure $($(PKG)_CONF_OPTS); \
--prefix= \
--without-docbook \
; \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(HOST_DIR) $(MAKE) install DESTDIR=$(HOST_DIR)
$(REMOVE)/$(HOST_EXPAT_DIR) $(REMOVE)/$(HOST_EXPAT_DIR)
@ -337,15 +338,11 @@ $(DL_DIR)/$(HOST_PYTHON3_SOURCE):
HOST_PYTHON3_DEPS = host-expat host-libffi HOST_PYTHON3_DEPS = host-expat host-libffi
host-python3: $(HOST_PYTHON3_DEPS) $(DL_DIR)/$(HOST_PYTHON3_SOURCE) | $(HOST_DIR) HOST_PYTHON3_CONF_ENV = \
$(REMOVE)/$(HOST_PYTHON3_DIR)
$(UNTAR)/$(HOST_PYTHON3_SOURCE)
$(CHDIR)/$(HOST_PYTHON3_DIR); \
#$(APPLY_PATCHES); \
autoconf; \
CONFIG_SITE= \ CONFIG_SITE= \
OPT="$(HOST_CFLAGS)" \ OPT="$(HOST_CFLAGS)"
./configure \
HOST_PYTHON3_CONF_OPTS = \
--prefix=$(HOST_DIR) \ --prefix=$(HOST_DIR) \
--without-ensurepip \ --without-ensurepip \
--without-cxx-main \ --without-cxx-main \
@ -358,33 +355,40 @@ host-python3: $(HOST_PYTHON3_DEPS) $(DL_DIR)/$(HOST_PYTHON3_SOURCE) | $(HOST_DIR
--enable-unicodedata \ --enable-unicodedata \
--disable-test-modules \ --disable-test-modules \
--disable-idle3 \ --disable-idle3 \
--disable-ossaudiodev \ --disable-ossaudiodev
; \
host-python3: $(HOST_PYTHON3_DEPS) $(DL_DIR)/$(HOST_PYTHON3_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
#$(APPLY_PATCHES); \
autoconf; \
$($(PKG)_CONF_ENV) ./configure $($(PKG)_CONF_OPTS); \
$(MAKE); \ $(MAKE); \
$(MAKE) install $(MAKE) install
$(REMOVE)/$(HOST_PYTHON3_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
HOST_PYTHON3-SETUPTOOLS_VER = 44.0.0 HOST_PYTHON3_SETUPTOOLS_VER = 44.0.0
HOST_PYTHON3-SETUPTOOLS_DIR = setuptools-$(HOST_PYTHON3-SETUPTOOLS_VER) HOST_PYTHON3_SETUPTOOLS_DIR = setuptools-$(HOST_PYTHON3_SETUPTOOLS_VER)
HOST_PYTHON3-SETUPTOOLS_SOURCE = setuptools-$(HOST_PYTHON3-SETUPTOOLS_VER).zip HOST_PYTHON3_SETUPTOOLS_SOURCE = setuptools-$(HOST_PYTHON3_SETUPTOOLS_VER).zip
HOST_PYTHON3-SETUPTOOLS_SITE = https://files.pythonhosted.org/packages/b0/f3/44da7482ac6da3f36f68e253cb04de37365b3dba9036a3c70773b778b485 HOST_PYTHON3_SETUPTOOLS_SITE = https://files.pythonhosted.org/packages/b0/f3/44da7482ac6da3f36f68e253cb04de37365b3dba9036a3c70773b778b485
$(DL_DIR)/$(HOST_PYTHON3-SETUPTOOLS_SOURCE): $(DL_DIR)/$(HOST_PYTHON3_SETUPTOOLS_SOURCE):
$(DOWNLOAD) $(HOST_PYTHON3-SETUPTOOLS_SITE)/$(HOST_PYTHON3-SETUPTOOLS_SOURCE) $(DOWNLOAD) $(HOST_PYTHON3_SETUPTOOLS_SITE)/$(HOST_PYTHON3_SETUPTOOLS_SOURCE)
HOST_PYTHON3-SETUPTOOLS_DEPS = host-python3 HOST_PYTHON3_SETUPTOOLS_DEPS = host-python3
host-python3-setuptools: $(HOST_PYTHON3-SETUPTOOLS_DEPS) $(DL_DIR)/$(HOST_PYTHON3-SETUPTOOLS_SOURCE) | $(HOST_DIR) host-python3-setuptools: $(HOST_PYTHON3_SETUPTOOLS_DEPS) $(DL_DIR)/$(HOST_PYTHON3_SETUPTOOLS_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(HOST_PYTHON3-SETUPTOOLS_DIR) $(REMOVE)/$(PKG_DIR)
$(UNZIP)/$(HOST_PYTHON3-SETUPTOOLS_SOURCE) $(UNZIP)/$(PKG_SOURCE)
$(CHDIR)/$(HOST_PYTHON3-SETUPTOOLS_DIR); \ $(CHDIR)/$(PKG_DIR); \
$(APPLY_PATCHES); \ $(APPLY_PATCHES); \
$(HOST_PYTHON_BUILD); \ $(HOST_PYTHON_BUILD); \
$(HOST_PYTHON_INSTALL) $(HOST_PYTHON_INSTALL)
$(REMOVE)/$(HOST_PYTHON3-SETUPTOOLS_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -397,17 +401,18 @@ HOST_LIBFFI_SITE = https://github.com/libffi/libffi/releases/download/v$(HOST_
#$(DL_DIR)/$(HOST_LIBFFI_SOURCE): #$(DL_DIR)/$(HOST_LIBFFI_SOURCE):
# $(DOWNLOAD) $(HOST_LIBFFI_SITE)/$(HOST_LIBFFI_SOURCE) # $(DOWNLOAD) $(HOST_LIBFFI_SITE)/$(HOST_LIBFFI_SOURCE)
HOST_LIBFFI_CONF_OPTS = \
--prefix=
host-libffi: $(DL_DIR)/$(HOST_LIBFFI_SOURCE) | $(HOST_DIR) host-libffi: $(DL_DIR)/$(HOST_LIBFFI_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(HOST_LIBFFI_DIR) $(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(HOST_LIBFFI_SOURCE) $(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(HOST_LIBFFI_DIR); \ $(CHDIR)/$(PKG_DIR); \
$(APPLY_PATCHES); \ $(APPLY_PATCHES); \
./configure \ $($(PKG)_CONF_ENV) ./configure $($(PKG)_CONF_OPTS); \
--prefix= \
; \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(HOST_DIR) $(MAKE) install DESTDIR=$(HOST_DIR)
$(REMOVE)/$(HOST_LIBFFI_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -426,13 +431,13 @@ HOST_LUA_PATCH += lua-01-remove-readline.patch
HOST_LUA = $(HOST_DIR)/bin/lua HOST_LUA = $(HOST_DIR)/bin/lua
host-lua: $(DL_DIR)/$(HOST_LUA_SOURCE) | $(HOST_DIR) host-lua: $(DL_DIR)/$(HOST_LUA_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(HOST_LUA_DIR) $(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(HOST_LUA_SOURCE) $(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(HOST_LUA_DIR); \ $(CHDIR)/$(PKG_DIR); \
$(call apply_patches,$(HOST_LUA_PATCH)); \ $(call apply_patches,$(addprefix $(PKG_PATCHES_DIR)/,$(PKG_PATCH))); \
$(MAKE) linux; \ $(MAKE) linux; \
$(MAKE) install INSTALL_TOP=$(HOST_DIR) $(MAKE) install INSTALL_TOP=$(HOST_DIR) INSTALL_MAN=$(HOST_DIR)/share/man/man1
$(REMOVE)/$(HOST_LUA_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -445,9 +450,9 @@ HOST_LUAROCKS_SITE = https://luarocks.github.io/luarocks/releases
$(DL_DIR)/$(HOST_LUAROCKS_SOURCE): $(DL_DIR)/$(HOST_LUAROCKS_SOURCE):
$(DOWNLOAD) $(HOST_LUAROCKS_SITE)/$(HOST_LUAROCKS_SOURCE) $(DOWNLOAD) $(HOST_LUAROCKS_SITE)/$(HOST_LUAROCKS_SOURCE)
HOST_LUAROCKS_PATCH = luarocks-0001-allow-libluajit-detection.patch HOST_LUAROCKS_DEPS = host-lua
HOST_LUAROCKS_CONFIG_FILE = $(HOST_DIR)/etc/luarocks/config-$(LUA_ABIVER).lua HOST_LUAROCKS_CONFIG = $(HOST_DIR)/etc/luarocks/config-$(LUA_ABIVER).lua
HOST_LUAROCKS_MAKE_ENV = \ HOST_LUAROCKS_MAKE_ENV = \
LUA_PATH="$(HOST_DIR)/share/lua/$(LUA_ABIVER)/?.lua" \ LUA_PATH="$(HOST_DIR)/share/lua/$(LUA_ABIVER)/?.lua" \
@ -459,25 +464,26 @@ HOST_LUAROCKS_MAKE_ENV = \
TARGET_includedir="$(TARGET_includedir)" \ TARGET_includedir="$(TARGET_includedir)" \
TARGET_libdir="$(TARGET_libdir)" TARGET_libdir="$(TARGET_libdir)"
HOST_LUAROCKS = $(HOST_DIR)/bin/luarocks HOST_LUAROCKS_CONF_OPTS = \
host-luarocks: $(HOST_LUAROCKS)
$(HOST_LUAROCKS): $(HOST_LUA) $(DL_DIR)/$(HOST_LUAROCKS_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(HOST_LUAROCKS_DIR)
$(UNTAR)/$(HOST_LUAROCKS_SOURCE)
$(CHDIR)/$(HOST_LUAROCKS_DIR); \
$(call apply_patches,$(HOST_LUAROCKS_PATCH)); \
./configure $(SILENT_OPT) \
--prefix=$(HOST_DIR) \ --prefix=$(HOST_DIR) \
--sysconfdir=$(HOST_DIR)/etc \ --sysconfdir=$(HOST_DIR)/etc \
--with-lua=$(HOST_DIR) \ --with-lua=$(HOST_DIR) \
--rocks-tree=$(TARGET_DIR) \ --rocks-tree=$(TARGET_DIR)
; \
rm -f $(HOST_LUAROCKS_CONFIG_FILE); \ HOST_LUAROCKS = $(HOST_DIR)/bin/luarocks
host-luarocks: $(HOST_LUAROCKS_DEPS) $(DL_DIR)/$(HOST_LUAROCKS_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(APPLY_PATCHES); \
$($(PKG)_CONF_ENV) ./configure $($(PKG)_CONF_OPTS); \
rm -f $(PKG_CONFIG_FILE); \
$(MAKE); \ $(MAKE); \
$(MAKE) install $(MAKE) install
cat $(CONFIGS)/luarocks-config.lua >> $(HOST_LUAROCKS_CONFIG_FILE) cat $(PKG_FILES_DIR)/luarocks-config.lua >> $(HOST_LUAROCKS_CONFIG)
$(REMOVE)/$(HOST_LUAROCKS_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------

40
make/linux-drivers.mk

@ -13,7 +13,7 @@ rtl8192eu: kernel-$(BOXTYPE) | $(TARGET_DIR)
$(GET-GIT-SOURCE) $(RTL8192EU_SITE) $(DL_DIR)/$(RTL8192EU_SOURCE) $(GET-GIT-SOURCE) $(RTL8192EU_SITE) $(DL_DIR)/$(RTL8192EU_SOURCE)
$(CPDIR)/$(RTL8192EU_SOURCE) $(CPDIR)/$(RTL8192EU_SOURCE)
$(CHDIR)/$(RTL8192EU_DIR); \ $(CHDIR)/$(RTL8192EU_DIR); \
$(MAKE) $(KERNEL_MAKEVARS); \ $(MAKE) $(KERNEL_MAKE_VARS); \
$(INSTALL_DATA) 8192eu.ko $(TARGET_modulesdir)/kernel/drivers/net/wireless/ $(INSTALL_DATA) 8192eu.ko $(TARGET_modulesdir)/kernel/drivers/net/wireless/
make depmod make depmod
$(REMOVE)/$(RTL8192EU_DIR) $(REMOVE)/$(RTL8192EU_DIR)
@ -34,7 +34,7 @@ rtl8812au: kernel-$(BOXTYPE) $(DL_DIR)/$(RTL8812AU_SOURCE) | $(TARGET_DIR)
$(UNZIP)/$(RTL8812AU_SOURCE) $(UNZIP)/$(RTL8812AU_SOURCE)
$(CHDIR)/$(RTL8812AU_DIR); \ $(CHDIR)/$(RTL8812AU_DIR); \
$(APPLY_PATCHES); \ $(APPLY_PATCHES); \
$(MAKE) $(KERNEL_MAKEVARS); \ $(MAKE) $(KERNEL_MAKE_VARS); \
$(INSTALL_DATA) 8812au.ko $(TARGET_modulesdir)/kernel/drivers/net/wireless/ $(INSTALL_DATA) 8812au.ko $(TARGET_modulesdir)/kernel/drivers/net/wireless/
make depmod make depmod
$(REMOVE)/$(RTL8812AU_DIR) $(REMOVE)/$(RTL8812AU_DIR)
@ -55,7 +55,7 @@ rtl8822bu: kernel-$(BOXTYPE) $(DL_DIR)/$(RTL8822BU_SOURCE) | $(TARGET_DIR)
$(UNZIP)/$(RTL8822BU_SOURCE) $(UNZIP)/$(RTL8822BU_SOURCE)
$(CHDIR)/$(RTL8822BU_DIR); \ $(CHDIR)/$(RTL8822BU_DIR); \
$(APPLY_PATCHES); \ $(APPLY_PATCHES); \
$(MAKE) $(KERNEL_MAKEVARS); \ $(MAKE) $(KERNEL_MAKE_VARS); \
$(INSTALL_DATA) 88x2bu.ko $(TARGET_modulesdir)/kernel/drivers/net/wireless/ $(INSTALL_DATA) 88x2bu.ko $(TARGET_modulesdir)/kernel/drivers/net/wireless/
make depmod make depmod
$(REMOVE)/$(RTL8822BU_DIR) $(REMOVE)/$(RTL8822BU_DIR)
@ -63,18 +63,16 @@ rtl8822bu: kernel-$(BOXTYPE) $(DL_DIR)/$(RTL8822BU_SOURCE) | $(TARGET_DIR)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
HD6x-MALI-DRIVERS_VER = DX910-SW-99002-r7p0-00rel0 HD6x_MALI_DRIVERS_VER = DX910-SW-99002-r7p0-00rel0
HD6x-MALI-DRIVERS_DIR = $(HD6x-MALI-DRIVERS_VER) HD6x_MALI_DRIVERS_DIR = $(HD6x_MALI_DRIVERS_VER)
HD6x-MALI-DRIVERS_SOURCE = $(HD6x-MALI-DRIVERS_VER).tgz HD6x_MALI_DRIVERS_SOURCE = $(HD6x_MALI_DRIVERS_VER).tgz
HD6x-MALI-DRIVERS_SITE = https://developer.arm.com/-/media/Files/downloads/mali-drivers/kernel/mali-utgard-gpu HD6x_MALI_DRIVERS_SITE = https://developer.arm.com/-/media/Files/downloads/mali-drivers/kernel/mali-utgard-gpu
$(DL_DIR)/$(HD6x-MALI-DRIVERS_SOURCE): $(DL_DIR)/$(HD6x_MALI_DRIVERS_SOURCE):
$(DOWNLOAD) $(HD6x-MALI-DRIVERS_SITE)/$(HD6x-MALI-DRIVERS_SOURCE) $(DOWNLOAD) $(HD6x_MALI_DRIVERS_SITE)/$(HD6x_MALI_DRIVERS_SOURCE)
HD6x-MALI-DRIVERS_PATCH = hi3798mv200-support.patch HD6x_MALI_DRIVERS_MAKE_VARS = \
M=$(BUILD_DIR)/$(HD6x_MALI_DRIVERS_DIR)/driver/src/devicedrv/mali \
HD6x-MALI-DRIVERS_MAKEVARS = \
M=$(BUILD_DIR)/$(HD6x-MALI-DRIVERS_DIR)/driver/src/devicedrv/mali \
EXTRA_CFLAGS="-DCONFIG_MALI_DVFS=y -DCONFIG_GPU_AVS_ENABLE=y" \ EXTRA_CFLAGS="-DCONFIG_MALI_DVFS=y -DCONFIG_GPU_AVS_ENABLE=y" \
CONFIG_MALI_SHARED_INTERRUPTS=y \ CONFIG_MALI_SHARED_INTERRUPTS=y \
CONFIG_MALI400=m \ CONFIG_MALI400=m \
@ -82,14 +80,14 @@ HD6x-MALI-DRIVERS_MAKEVARS = \
CONFIG_MALI_DVFS=y \ CONFIG_MALI_DVFS=y \
CONFIG_GPU_AVS_ENABLE=y CONFIG_GPU_AVS_ENABLE=y
hd6x-mali-drivers: kernel-$(BOXTYPE) hd6x-libgles-headers $(DL_DIR)/$(HD6x-MALI-DRIVERS_SOURCE) | $(TARGET_DIR) hd6x-mali-drivers: kernel-$(BOXTYPE) hd6x-libgles-headers $(DL_DIR)/$(HD6x_MALI_DRIVERS_SOURCE) | $(TARGET_DIR)
$(START_BUILD) $(START_BUILD)
$(REMOVE)/$(HD6x-MALI-DRIVERS_DIR) $(REMOVE)/$(HD6x_MALI_DRIVERS_DIR)
$(UNTAR)/$(HD6x-MALI-DRIVERS_SOURCE) $(UNTAR)/$(HD6x_MALI_DRIVERS_SOURCE)
$(CHDIR)/$(HD6x-MALI-DRIVERS_DIR); \ $(CHDIR)/$(HD6x_MALI_DRIVERS_DIR); \
$(call apply_patches,$(HD6x-MALI-DRIVERS_PATCH)); \ $(APPLY_PATCHES); \
$(MAKE) -C $(BUILD_DIR)/$(KERNEL_OBJ) $(KERNEL_MAKEVARS) $(HD6x-MALI-DRIVERS_MAKEVARS); \ $(MAKE) -C $(BUILD_DIR)/$(KERNEL_OBJ) $(KERNEL_MAKE_VARS) $(HD6x_MALI_DRIVERS_MAKE_VARS); \
$(MAKE) -C $(BUILD_DIR)/$(KERNEL_OBJ) $(KERNEL_MAKEVARS) $(HD6x-MALI-DRIVERS_MAKEVARS) INSTALL_MOD_PATH=$(TARGET_DIR) modules_install $(MAKE) -C $(BUILD_DIR)/$(KERNEL_OBJ) $(KERNEL_MAKE_VARS) $(HD6x_MALI_DRIVERS_MAKE_VARS) INSTALL_MOD_PATH=$(TARGET_DIR) modules_install
make depmod make depmod
$(REMOVE)/$(HD6x-MALI-DRIVERS_DIR) $(REMOVE)/$(HD6x_MALI_DRIVERS_DIR)
$(TOUCH) $(TOUCH)

76
make/linux-kernel.mk

@ -193,17 +193,17 @@ VUDUO_PATCH = \
$(DL_DIR)/$(KERNEL_SOURCE): $(DL_DIR)/$(KERNEL_SOURCE):
$(DOWNLOAD) $(KERNEL_SITE)/$(KERNEL_SOURCE) $(DOWNLOAD) $(KERNEL_SITE)/$(KERNEL_SOURCE)
$(DL_DIR)/$(VMLINUZ-INITRD_SOURCE): $(DL_DIR)/$(VMLINUZ_INITRD_SOURCE):
$(DOWNLOAD) $(VMLINUZ-INITRD_SITE)/$(VMLINUZ-INITRD_SOURCE) $(DOWNLOAD) $(VMLINUZ_INITRD_SITE)/$(VMLINUZ_INITRD_SOURCE)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
kernel.do_checkout: $(SOURCE_DIR)/$(NI-LINUX-KERNEL) kernel.do_checkout: $(SOURCE_DIR)/$(NI_LINUX_KERNEL)
$(CD) $(SOURCE_DIR)/$(NI-LINUX-KERNEL); \ $(CD) $(SOURCE_DIR)/$(NI_LINUX_KERNEL); \
git checkout $(KERNEL_BRANCH) git checkout $(KERNEL_BRANCH)
kernel.do_prepare: kernel.do_prepare:
$(MAKE) kernel.do_prepare.$(if $(filter $(KERNEL_SOURCE),git),git,tar) $(MAKE) kernel.do_prepare_$(if $(filter $(KERNEL_SOURCE),git),git,tar)
# #
$(REMOVE)/$(KERNEL_OBJ) $(REMOVE)/$(KERNEL_OBJ)
$(REMOVE)/$(KERNEL_MODULES) $(REMOVE)/$(KERNEL_MODULES)
@ -213,31 +213,31 @@ kernel.do_prepare:
$(MKDIR)/$(KERNEL_HEADERS) $(MKDIR)/$(KERNEL_HEADERS)
$(INSTALL_DATA) $(KERNEL_CONFIG) $(BUILD_DIR)/$(KERNEL_OBJ)/.config $(INSTALL_DATA) $(KERNEL_CONFIG) $(BUILD_DIR)/$(KERNEL_OBJ)/.config
ifeq ($(BOXMODEL),$(filter $(BOXMODEL),hd51 bre2ze4k h7 hd60 hd61)) ifeq ($(BOXMODEL),$(filter $(BOXMODEL),hd51 bre2ze4k h7 hd60 hd61))
$(INSTALL_DATA) $(PATCHES)/initramfs-subdirboot.cpio.gz $(BUILD_DIR)/$(KERNEL_OBJ) $(INSTALL_DATA) $(PKG_FILES_DIR)/initramfs-subdirboot.cpio.gz $(BUILD_DIR)/$(KERNEL_OBJ)
endif endif
$(TOUCH) $(TOUCH)
kernel.do_prepare.git: kernel.do_prepare_git:
$(MAKE) kernel.do_checkout $(MAKE) kernel.do_checkout
# #
$(REMOVE)/$(KERNEL_DIR) $(REMOVE)/$(KERNEL_DIR)
tar -C $(SOURCE_DIR) -cp $(NI-LINUX-KERNEL) --exclude-vcs | tar -C $(BUILD_DIR) -x tar -C $(SOURCE_DIR) -cp $(NI_LINUX_KERNEL) --exclude-vcs | tar -C $(BUILD_DIR) -x
$(CD) $(BUILD_DIR); \ $(CD) $(BUILD_DIR); \
mv $(NI-LINUX-KERNEL) $(KERNEL_DIR) mv $(NI_LINUX_KERNEL) $(KERNEL_DIR)
kernel.do_prepare.tar: $(DL_DIR)/$(KERNEL_SOURCE) kernel.do_prepare_tar: $(DL_DIR)/$(KERNEL_SOURCE)
$(REMOVE)/$(KERNEL_DIR) $(REMOVE)/$(KERNEL_DIR)
$(UNTAR)/$(KERNEL_SOURCE) $(UNTAR)/$(KERNEL_SOURCE)
$(CHDIR)/$(KERNEL_DIR); \ $(CHDIR)/$(KERNEL_DIR); \
$(call apply_patches,$(addprefix kernel/,$(KERNEL_PATCH))) $(call apply_patches,$(addprefix $(PKG_PATCHES_DIR)/,$(KERNEL_PATCH)))
kernel.do_compile: kernel.do_prepare kernel.do_compile: kernel.do_prepare
$(CHDIR)/$(KERNEL_DIR); \ $(CHDIR)/$(KERNEL_DIR); \
$(MAKE) $(KERNEL_MAKEVARS) silentoldconfig; \ $(MAKE) $(KERNEL_MAKE_VARS) silentoldconfig; \
$(MAKE) $(KERNEL_MAKEVARS) $(KERNEL_MAKEOPTS); \ $(MAKE) $(KERNEL_MAKE_VARS) modules $(KERNEL_MAKE_TARGETS); \
$(MAKE) $(KERNEL_MAKEVARS) modules_install; \ $(MAKE) $(KERNEL_MAKE_VARS) modules_install; \
$(MAKE) $(KERNEL_MAKEVARS) headers_install $(MAKE) $(KERNEL_MAKE_VARS) headers_install
ifneq ($(KERNEL_DTB),$(EMPTY)) ifneq ($(KERNEL_DTB),$(empty))
cat $(KERNEL_ZIMAGE) $(KERNEL_DTB) > $(KERNEL_ZIMAGE_DTB) cat $(KERNEL_ZIMAGE) $(KERNEL_DTB) > $(KERNEL_ZIMAGE_DTB)
endif endif
$(TOUCH) $(TOUCH)
@ -253,12 +253,12 @@ kernel-coolstream: kernel-coolstream-$(BOXSERIES)
$(TOUCH) $(TOUCH)
kernel-coolstream-hd1: kernel.do_compile | $(IMAGE_DIR) kernel-coolstream-hd1: kernel.do_compile | $(IMAGE_DIR)
mkimage -A $(TARGET_ARCH) -O linux -T kernel -C none -a 0x48000 -e 0x48000 -n "$(KERNEL_NAME)" -d $(KERNEL_UIMAGE) $(IMAGE_DIR)/kernel-$(BOXTYPE_SC)-$(BOXMODEL)-uImage.img $(HOST_MKIMAGE) -A $(TARGET_ARCH) -O linux -T kernel -C none -a 0x48000 -e 0x48000 -n "$(KERNEL_NAME)" -d $(KERNEL_UIMAGE) $(IMAGE_DIR)/kernel-$(BOXTYPE_SC)-$(BOXMODEL)-uImage.img
mkimage -A $(TARGET_ARCH) -O linux -T kernel -C none -a 0x48000 -e 0x48000 -n "$(KERNEL_NAME)" -d $(KERNEL_ZIMAGE) $(IMAGE_DIR)/kernel-$(BOXTYPE_SC)-$(BOXMODEL)-zImage.img $(HOST_MKIMAGE) -A $(TARGET_ARCH) -O linux -T kernel -C none -a 0x48000 -e 0x48000 -n "$(KERNEL_NAME)" -d $(KERNEL_ZIMAGE) $(IMAGE_DIR)/kernel-$(BOXTYPE_SC)-$(BOXMODEL)-zImage.img
$(TOUCH) $(TOUCH)
kernel-coolstream-hd2: kernel.do_compile | $(IMAGE_DIR) kernel-coolstream-hd2: kernel.do_compile | $(IMAGE_DIR)
mkimage -A $(TARGET_ARCH) -O linux -T kernel -C none -a 0x8000 -e 0x8000 -n "$(KERNEL_NAME)" -d $(KERNEL_ZIMAGE_DTB) $(IMAGE_DIR)/kernel-$(BOXTYPE_SC)-$(BOXMODEL)-vmlinux.ub.gz $(HOST_MKIMAGE) -A $(TARGET_ARCH) -O linux -T kernel -C none -a 0x8000 -e 0x8000 -n "$(KERNEL_NAME)" -d $(KERNEL_ZIMAGE_DTB) $(IMAGE_DIR)/kernel-$(BOXTYPE_SC)-$(BOXMODEL)-vmlinux.ub.gz
ifeq ($(BOXMODEL),$(filter $(BOXMODEL),apollo shiner)) ifeq ($(BOXMODEL),$(filter $(BOXMODEL),apollo shiner))
ifeq ($(BOXMODEL),apollo) ifeq ($(BOXMODEL),apollo)
# create also shiner-kernel when building apollo # create also shiner-kernel when building apollo
@ -271,7 +271,7 @@ endif
$(TOUCH) $(TOUCH)
kernel-armbox: kernel.do_compile | $(IMAGE_DIR) kernel-armbox: kernel.do_compile | $(IMAGE_DIR)
#ifneq ($(KERNEL_DTB),$(EMPTY)) #ifneq ($(KERNEL_DTB),$(empty))
# $(INSTALL_DATA) $(KERNEL_ZIMAGE_DTB) $(IMAGE_DIR)/kernel-$(BOXTYPE_SC)-$(BOXMODEL).bin # $(INSTALL_DATA) $(KERNEL_ZIMAGE_DTB) $(IMAGE_DIR)/kernel-$(BOXTYPE_SC)-$(BOXMODEL).bin
#else #else
# $(INSTALL_DATA) $(KERNEL_ZIMAGE) $(IMAGE_DIR)/kernel-$(BOXTYPE_SC)-$(BOXMODEL).bin # $(INSTALL_DATA) $(KERNEL_ZIMAGE) $(IMAGE_DIR)/kernel-$(BOXTYPE_SC)-$(BOXMODEL).bin
@ -287,21 +287,21 @@ kernel-mipsbox: kernel.do_compile | $(IMAGE_DIR)
kernel-modules-coolstream: kernel-modules-coolstream-$(BOXSERIES) kernel-modules-coolstream: kernel-modules-coolstream-$(BOXSERIES)
$(TOUCH) $(TOUCH)
STRIP-MODULES-COOLSTREAM-HD1 = STRIP_MODULES_COOLSTREAM_HD1 =
STRIP-MODULES-COOLSTREAM-HD1 += kernel/drivers/mtd/devices/mtdram.ko STRIP_MODULES_COOLSTREAM_HD1 += kernel/drivers/mtd/devices/mtdram.ko
STRIP-MODULES-COOLSTREAM-HD1 += kernel/drivers/mtd/devices/block2mtd.ko STRIP_MODULES_COOLSTREAM_HD1 += kernel/drivers/mtd/devices/block2mtd.ko
STRIP-MODULES-COOLSTREAM-HD1 += kernel/drivers/net/tun.ko STRIP_MODULES_COOLSTREAM_HD1 += kernel/drivers/net/tun.ko
STRIP-MODULES-COOLSTREAM-HD1 += kernel/drivers/staging/rt2870/rt2870sta.ko STRIP_MODULES_COOLSTREAM_HD1 += kernel/drivers/staging/rt2870/rt2870sta.ko
STRIP-MODULES-COOLSTREAM-HD1 += kernel/drivers/usb/serial/ftdi_sio.ko STRIP_MODULES_COOLSTREAM_HD1 += kernel/drivers/usb/serial/ftdi_sio.ko
STRIP-MODULES-COOLSTREAM-HD1 += kernel/drivers/usb/serial/pl2303.ko STRIP_MODULES_COOLSTREAM_HD1 += kernel/drivers/usb/serial/pl2303.ko
STRIP-MODULES-COOLSTREAM-HD1 += kernel/drivers/usb/serial/usbserial.ko STRIP_MODULES_COOLSTREAM_HD1 += kernel/drivers/usb/serial/usbserial.ko
STRIP-MODULES-COOLSTREAM-HD1 += kernel/fs/autofs4/autofs4.ko STRIP_MODULES_COOLSTREAM_HD1 += kernel/fs/autofs4/autofs4.ko
STRIP-MODULES-COOLSTREAM-HD1 += kernel/fs/cifs/cifs.ko STRIP_MODULES_COOLSTREAM_HD1 += kernel/fs/cifs/cifs.ko
STRIP-MODULES-COOLSTREAM-HD1 += kernel/fs/fuse/fuse.ko STRIP_MODULES_COOLSTREAM_HD1 += kernel/fs/fuse/fuse.ko
kernel-modules-coolstream-hd1: kernel-coolstream kernel-modules-coolstream-hd1: kernel-coolstream
mkdir -p $(TARGET_modulesdir) mkdir -p $(TARGET_modulesdir)
for module in $(STRIP-MODULES-COOLSTREAM-HD1); do \ for module in $(STRIP_MODULES_COOLSTREAM_HD1); do \
mkdir -p $(TARGET_modulesdir)/$$(dirname $$module); \ mkdir -p $(TARGET_modulesdir)/$$(dirname $$module); \
$(TARGET_OBJCOPY) --strip-unneeded $(KERNEL_modulesdir)/$$module $(TARGET_modulesdir)/$$module; \ $(TARGET_OBJCOPY) --strip-unneeded $(KERNEL_modulesdir)/$$module $(TARGET_modulesdir)/$$module; \
done; done;
@ -344,8 +344,8 @@ kernel-modules-mipsbox: kernel-mipsbox
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
vmlinuz-initrd: $(DL_DIR)/$(VMLINUZ-INITRD_SOURCE) vmlinuz-initrd: $(DL_DIR)/$(VMLINUZ_INITRD_SOURCE)
$(UNTAR)/$(VMLINUZ-INITRD_SOURCE) $(UNTAR)/$(VMLINUZ_INITRD_SOURCE)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -366,11 +366,11 @@ kernel-install-coolstream: kernel-install-coolstream-$(BOXSERIES)
kernel-install-coolstream-hd1: kernel-coolstream-hd1 kernel-install-coolstream-hd1: kernel-coolstream-hd1
$(INSTALL_DATA) $(IMAGE_DIR)/kernel-$(BOXTYPE_SC)-$(BOXMODEL)-zImage.img \ $(INSTALL_DATA) $(IMAGE_DIR)/kernel-$(BOXTYPE_SC)-$(BOXMODEL)-zImage.img \
$(SOURCE_DIR)/$(NI-DRIVERS-BIN)/$(DRIVERS-BIN_DIR)/zImage $(SOURCE_DIR)/$(NI_DRIVERS_BIN)/$(DRIVERS_BIN_DIR)/zImage
kernel-install-coolstream-hd2: kernel-coolstream-hd2 kernel-install-coolstream-hd2: kernel-coolstream-hd2
$(INSTALL_DATA) $(IMAGE_DIR)/kernel-$(BOXTYPE_SC)-$(BOXMODEL)-vmlinux.ub.gz \ $(INSTALL_DATA) $(IMAGE_DIR)/kernel-$(BOXTYPE_SC)-$(BOXMODEL)-vmlinux.ub.gz \
$(SOURCE_DIR)/$(NI-DRIVERS-BIN)/$(DRIVERS-BIN_DIR)/vmlinux.ub.gz $(SOURCE_DIR)/$(NI_DRIVERS_BIN)/$(DRIVERS_BIN_DIR)/vmlinux.ub.gz
kernel-install-coolstream-all: kernel-install-coolstream-all:
make clean BOXFAMILY=nevis make clean BOXFAMILY=nevis
@ -396,8 +396,8 @@ kernel-install-coolstream-all:
# #
make clean > /dev/null 2>&1 make clean > /dev/null 2>&1
# #
@echo -e "$(TERM_YELLOW)Align stb_update.data in $(SOURCE_DIR)/$(NI-DRIVERS-BIN)$(TERM_NORMAL)" @echo -e "$(TERM_YELLOW)Align stb_update.data in $(SOURCE_DIR)/$(NI_DRIVERS_BIN)$(TERM_NORMAL)"
@echo -e "$(TERM_YELLOW)and commit your changes in $(SOURCE_DIR)/$(NI-DRIVERS-BIN)$(TERM_NORMAL)" @echo -e "$(TERM_YELLOW)and commit your changes in $(SOURCE_DIR)/$(NI_DRIVERS_BIN)$(TERM_NORMAL)"
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------

16
make/ni.mk

@ -3,7 +3,7 @@
# #
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
BOXMODEL_IMAGE = $(EMPTY) BOXMODEL_IMAGE =
ifneq ($(DEBUG),yes) ifneq ($(DEBUG),yes)
BOXMODEL_IMAGE += nevis BOXMODEL_IMAGE += nevis
endif endif
@ -35,29 +35,29 @@ ni-image:
$(MAKE) tzdata $(MAKE) tzdata
$(MAKE) smartmontools $(MAKE) smartmontools
$(MAKE) sg3_utils $(MAKE) sg3_utils
$(MAKE) nfs-utils
$(MAKE) procps-ng
$(MAKE) nano $(MAKE) nano
make hd-idle make hd-idle
$(MAKE) hdparm
$(MAKE) nfs-utils
$(MAKE) e2fsprogs $(MAKE) e2fsprogs
$(MAKE) ntfs-3g $(MAKE) ntfs-3g
$(MAKE) exfat-utils $(MAKE) exfat-utils
$(MAKE) vsftpd $(MAKE) dosfstools
$(MAKE) mtd-utils
make djmount make djmount
$(MAKE) ushare $(MAKE) ushare
$(MAKE) xupnpd $(MAKE) xupnpd
make inadyn make inadyn
make samba make samba
$(MAKE) vsftpd
make dropbear make dropbear
$(MAKE) hdparm
$(MAKE) busybox $(MAKE) busybox
$(MAKE) sysvinit $(MAKE) sysvinit
$(MAKE) coreutils $(MAKE) coreutils
$(MAKE) dosfstools $(MAKE) procps-ng
$(MAKE) wpa_supplicant $(MAKE) wpa_supplicant
$(MAKE) mtd-utils
$(MAKE) wget $(MAKE) wget
#$(MAKE) streamripper $(MAKE) streamripper
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd2 hd5x hd6x vusolo4k vuduo4k vuduo4kse vuultimo4k vuzero4k vuuno4k vuuno4kse vuduo)) ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd2 hd5x hd6x vusolo4k vuduo4k vuduo4kse vuultimo4k vuzero4k vuuno4k vuuno4kse vuduo))
$(MAKE) less $(MAKE) less
$(MAKE) parted $(MAKE) parted

450
make/target-blobs.mk

@ -22,104 +22,104 @@ endif
firmware: firmware-boxmodel firmware-wireless firmware: firmware-boxmodel firmware-wireless
firmware-boxmodel: $(SOURCE_DIR)/$(NI-DRIVERS-BIN) | $(TARGET_DIR) firmware-boxmodel: $(SOURCE_DIR)/$(NI_DRIVERS_BIN) | $(TARGET_DIR)
$(call INSTALL_EXIST,$(SOURCE_DIR)/$(NI-DRIVERS-BIN)/$(DRIVERS-BIN_DIR)/lib-firmware/.,$(TARGET_base_libdir)/firmware) $(call INSTALL_EXIST,$(SOURCE_DIR)/$(NI_DRIVERS_BIN)/$(DRIVERS_BIN_DIR)/lib-firmware/.,$(TARGET_base_libdir)/firmware)
$(call INSTALL_EXIST,$(SOURCE_DIR)/$(NI-DRIVERS-BIN)/$(DRIVERS-BIN_DIR)/lib-firmware-dvb/.,$(TARGET_base_libdir)/firmware) $(call INSTALL_EXIST,$(SOURCE_DIR)/$(NI_DRIVERS_BIN)/$(DRIVERS_BIN_DIR)/lib-firmware-dvb/.,$(TARGET_base_libdir)/firmware)
ifeq ($(BOXMODEL),nevis) ifeq ($(BOXMODEL),nevis)
FIRMWARE-WIRELESS = rt2870.bin FIRMWARE_WIRELESS = rt2870.bin
FIRMWARE-WIRELESS += rt3070.bin FIRMWARE_WIRELESS += rt3070.bin
FIRMWARE-WIRELESS += rt3071.bin FIRMWARE_WIRELESS += rt3071.bin
FIRMWARE-WIRELESS += rtlwifi/rtl8192cufw.bin FIRMWARE_WIRELESS += rtlwifi/rtl8192cufw.bin
FIRMWARE-WIRELESS += rtlwifi/rtl8712u.bin FIRMWARE_WIRELESS += rtlwifi/rtl8712u.bin
else else
FIRMWARE-WIRELESS = $(shell cd $(SOURCE_DIR)/$(NI-DRIVERS-BIN)/general/firmware-wireless; find * -type f) FIRMWARE_WIRELESS = $(shell cd $(SOURCE_DIR)/$(NI_DRIVERS_BIN)/general/firmware-wireless; find * -type f)
endif endif
firmware-wireless: $(SOURCE_DIR)/$(NI-DRIVERS-BIN) | $(TARGET_DIR) firmware-wireless: $(SOURCE_DIR)/$(NI_DRIVERS_BIN) | $(TARGET_DIR)
for firmware in $(FIRMWARE-WIRELESS); do \ for firmware in $(FIRMWARE_WIRELESS); do \
$(INSTALL_DATA) -D $(SOURCE_DIR)/$(NI-DRIVERS-BIN)/general/firmware-wireless/$$firmware $(TARGET_base_libdir)/firmware/$$firmware; \ $(INSTALL_DATA) -D $(SOURCE_DIR)/$(NI_DRIVERS_BIN)/general/firmware-wireless/$$firmware $(TARGET_base_libdir)/firmware/$$firmware; \
done done
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
HD51-DRIVERS_VER = 20191120 HD51_DRIVERS_VER = 20191120
HD51-DRIVERS_SOURCE = hd51-drivers-$(KERNEL_VER)-$(HD51-DRIVERS_VER).zip HD51_DRIVERS_SOURCE = hd51-drivers-$(KERNEL_VER)-$(HD51_DRIVERS_VER).zip
HD51-DRIVERS_SITE = http://source.mynonpublic.com/gfutures HD51_DRIVERS_SITE = http://source.mynonpublic.com/gfutures
BRE2ZE4K-DRIVERS_VER = 20191120 BRE2ZE4K_DRIVERS_VER = 20191120
BRE2ZE4K-DRIVERS_SOURCE = bre2ze4k-drivers-$(KERNEL_VER)-$(BRE2ZE4K-DRIVERS_VER).zip BRE2ZE4K_DRIVERS_SOURCE = bre2ze4k-drivers-$(KERNEL_VER)-$(BRE2ZE4K_DRIVERS_VER).zip
BRE2ZE4K-DRIVERS_SITE = http://source.mynonpublic.com/gfutures BRE2ZE4K_DRIVERS_SITE = http://source.mynonpublic.com/gfutures
H7-DRIVERS_VER = 20191123 H7_DRIVERS_VER = 20191123
H7-DRIVERS_SOURCE = h7-drivers-$(KERNEL_VER)-$(H7-DRIVERS_VER).zip H7_DRIVERS_SOURCE = h7-drivers-$(KERNEL_VER)-$(H7_DRIVERS_VER).zip
H7-DRIVERS_SITE = http://source.mynonpublic.com/zgemma H7_DRIVERS_SITE = http://source.mynonpublic.com/zgemma
HD60-DRIVERS_VER = 20200731 HD60_DRIVERS_VER = 20200731
HD60-DRIVERS_SOURCE = hd60-drivers-$(KERNEL_VER)-$(HD60-DRIVERS_VER).zip HD60_DRIVERS_SOURCE = hd60-drivers-$(KERNEL_VER)-$(HD60_DRIVERS_VER).zip
HD60-DRIVERS_SITE = http://source.mynonpublic.com/gfutures HD60_DRIVERS_SITE = http://source.mynonpublic.com/gfutures
HD61-DRIVERS_VER = 20200731 HD61_DRIVERS_VER = 20200731
HD61-DRIVERS_SOURCE = hd61-drivers-$(KERNEL_VER)-$(HD61-DRIVERS_VER).zip HD61_DRIVERS_SOURCE = hd61-drivers-$(KERNEL_VER)-$(HD61_DRIVERS_VER).zip
HD61-DRIVERS_SITE = http://source.mynonpublic.com/gfutures HD61_DRIVERS_SITE = http://source.mynonpublic.com/gfutures
VUSOLO4K-DRIVERS_VER = 20190424 VUSOLO4K_DRIVERS_VER = 20190424
VUSOLO4K-DRIVERS_SOURCE = vuplus-dvb-proxy-vusolo4k-3.14.28-$(VUSOLO4K-DRIVERS_VER).r0.tar.gz VUSOLO4K_DRIVERS_SOURCE = vuplus-dvb-proxy-vusolo4k-3.14.28-$(VUSOLO4K_DRIVERS_VER).r0.tar.gz
VUSOLO4K-DRIVERS_SITE = http://code.vuplus.com/download/release/vuplus-dvb-proxy VUSOLO4K_DRIVERS_SITE = http://code.vuplus.com/download/release/vuplus-dvb-proxy
ifeq ($(VUPLUS-DRIVERS_LATEST),yes) ifeq ($(VUPLUS_DRIVERS_LATEST),yes)
VUDUO4K-DRIVERS_VER = 20191218 VUDUO4K_DRIVERS_VER = 20191218
else else
VUDUO4K-DRIVERS_VER = 20190212 VUDUO4K_DRIVERS_VER = 20190212
endif endif
VUDUO4K-DRIVERS_SOURCE = vuplus-dvb-proxy-vuduo4k-4.1.45-$(VUDUO4K-DRIVERS_VER).r0.tar.gz VUDUO4K_DRIVERS_SOURCE = vuplus-dvb-proxy-vuduo4k-4.1.45-$(VUDUO4K_DRIVERS_VER).r0.tar.gz
VUDUO4K-DRIVERS_SITE = http://code.vuplus.com/download/release/vuplus-dvb-proxy VUDUO4K_DRIVERS_SITE = http://code.vuplus.com/download/release/vuplus-dvb-proxy
VUDUO4KSE-DRIVERS_VER = 20200903 VUDUO4KSE_DRIVERS_VER = 20200903
VUDUO4KSE-DRIVERS_SOURCE = vuplus-dvb-proxy-vuduo4kse-4.1.45-$(VUDUO4KSE-DRIVERS_VER).r0.tar.gz VUDUO4KSE_DRIVERS_SOURCE = vuplus-dvb-proxy-vuduo4kse-4.1.45-$(VUDUO4KSE_DRIVERS_VER).r0.tar.gz
VUDUO4KSE-DRIVERS_SITE = http://code.vuplus.com/download/release/vuplus-dvb-proxy VUDUO4KSE_DRIVERS_SITE = http://code.vuplus.com/download/release/vuplus-dvb-proxy
ifeq ($(VUPLUS-DRIVERS_LATEST),yes) ifeq ($(VUPLUS_DRIVERS_LATEST),yes)
VUULTIMO4K-DRIVERS_VER = 20190424 VUULTIMO4K_DRIVERS_VER = 20190424
else else
VUULTIMO4K-DRIVERS_VER = 20190104 VUULTIMO4K_DRIVERS_VER = 20190104
endif endif
VUULTIMO4K-DRIVERS_SOURCE = vuplus-dvb-proxy-vuultimo4k-3.14.28-$(VUULTIMO4K-DRIVERS_VER).r0.tar.gz VUULTIMO4K_DRIVERS_SOURCE = vuplus-dvb-proxy-vuultimo4k-3.14.28-$(VUULTIMO4K_DRIVERS_VER).r0.tar.gz
VUULTIMO4K-DRIVERS_SITE = http://code.vuplus.com/download/release/vuplus-dvb-proxy VUULTIMO4K_DRIVERS_SITE = http://code.vuplus.com/download/release/vuplus-dvb-proxy
VUZERO4K-DRIVERS_VER = 20190424 VUZERO4K_DRIVERS_VER = 20190424
VUZERO4K-DRIVERS_SOURCE = vuplus-dvb-proxy-vuzero4k-4.1.20-$(VUZERO4K-DRIVERS_VER).r0.tar.gz VUZERO4K_DRIVERS_SOURCE = vuplus-dvb-proxy-vuzero4k-4.1.20-$(VUZERO4K_DRIVERS_VER).r0.tar.gz
VUZERO4K-DRIVERS_SITE = http://code.vuplus.com/download/release/vuplus-dvb-proxy VUZERO4K_DRIVERS_SITE = http://code.vuplus.com/download/release/vuplus-dvb-proxy
ifeq ($(VUPLUS-DRIVERS_LATEST),yes) ifeq ($(VUPLUS_DRIVERS_LATEST),yes)
VUUNO4K-DRIVERS_VER = 20190424 VUUNO4K_DRIVERS_VER = 20190424
else else
VUUNO4K-DRIVERS_VER = 20190104 VUUNO4K_DRIVERS_VER = 20190104
endif endif
VUUNO4K-DRIVERS_SOURCE = vuplus-dvb-proxy-vuuno4k-3.14.28-$(VUUNO4K-DRIVERS_VER).r0.tar.gz VUUNO4K_DRIVERS_SOURCE = vuplus-dvb-proxy-vuuno4k-3.14.28-$(VUUNO4K_DRIVERS_VER).r0.tar.gz
VUUNO4K-DRIVERS_SITE = http://code.vuplus.com/download/release/vuplus-dvb-proxy VUUNO4K_DRIVERS_SITE = http://code.vuplus.com/download/release/vuplus-dvb-proxy
ifeq ($(VUPLUS-DRIVERS_LATEST),yes) ifeq ($(VUPLUS_DRIVERS_LATEST),yes)
VUUNO4KSE-DRIVERS_VER = 20190424 VUUNO4KSE_DRIVERS_VER = 20190424
else else
VUUNO4KSE-DRIVERS_VER = 20190104 VUUNO4KSE_DRIVERS_VER = 20190104
endif endif
VUUNO4KSE-DRIVERS_SOURCE = vuplus-dvb-proxy-vuuno4kse-4.1.20-$(VUUNO4KSE-DRIVERS_VER).r0.tar.gz VUUNO4KSE_DRIVERS_SOURCE = vuplus-dvb-proxy-vuuno4kse-4.1.20-$(VUUNO4KSE_DRIVERS_VER).r0.tar.gz
VUUNO4KSE-DRIVERS_SITE = http://code.vuplus.com/download/release/vuplus-dvb-proxy VUUNO4KSE_DRIVERS_SITE = http://code.vuplus.com/download/release/vuplus-dvb-proxy
VUDUO-DRIVERS_VER = 20151124 VUDUO_DRIVERS_VER = 20151124
VUDUO-DRIVERS_SOURCE = vuplus-dvb-modules-bm750-3.9.6-$(VUDUO-DRIVERS_VER).tar.gz VUDUO_DRIVERS_SOURCE = vuplus-dvb-modules-bm750-3.9.6-$(VUDUO_DRIVERS_VER).tar.gz
VUDUO-DRIVERS_SITE = http://code.vuplus.com/download/release/vuplus-dvb-modules VUDUO_DRIVERS_SITE = http://code.vuplus.com/download/release/vuplus-dvb-modules
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
BOXMODEL-DRIVERS_VER = $($(call UPPERCASE,$(BOXMODEL))-DRIVERS_VER) BOXMODEL_DRIVERS_VER = $($(call UPPERCASE,$(BOXMODEL))_DRIVERS_VER)
BOXMODEL-DRIVERS_SOURCE = $($(call UPPERCASE,$(BOXMODEL))-DRIVERS_SOURCE) BOXMODEL_DRIVERS_SOURCE = $($(call UPPERCASE,$(BOXMODEL))_DRIVERS_SOURCE)
BOXMODEL-DRIVERS_SITE = $($(call UPPERCASE,$(BOXMODEL))-DRIVERS_SITE) BOXMODEL_DRIVERS_SITE = $($(call UPPERCASE,$(BOXMODEL))_DRIVERS_SITE)
ifneq ($(BOXMODEL-DRIVERS_SOURCE),$(EMPTY)) ifneq ($(BOXMODEL_DRIVERS_SOURCE),$(empty))
$(DL_DIR)/$(BOXMODEL-DRIVERS_SOURCE): $(DL_DIR)/$(BOXMODEL_DRIVERS_SOURCE):
$(DOWNLOAD) $(BOXMODEL-DRIVERS_SITE)/$(BOXMODEL-DRIVERS_SOURCE) $(DOWNLOAD) $(BOXMODEL_DRIVERS_SITE)/$(BOXMODEL_DRIVERS_SOURCE)
endif endif
nevis-drivers \ nevis-drivers \
@ -127,15 +127,15 @@ apollo-drivers \
shiner-drivers \ shiner-drivers \
kronos-drivers \ kronos-drivers \
kronos_v2-drivers \ kronos_v2-drivers \
coolstream-drivers: $(SOURCE_DIR)/$(NI-DRIVERS-BIN) | $(TARGET_DIR) coolstream-drivers: $(SOURCE_DIR)/$(NI_DRIVERS_BIN) | $(TARGET_DIR)
mkdir -p $(TARGET_libdir) mkdir -p $(TARGET_libdir)
$(INSTALL_COPY) $(SOURCE_DIR)/$(NI-DRIVERS-BIN)/$(DRIVERS-BIN_DIR)/lib/. $(TARGET_libdir) $(INSTALL_COPY) $(SOURCE_DIR)/$(NI_DRIVERS_BIN)/$(DRIVERS_BIN_DIR)/lib/. $(TARGET_libdir)
$(INSTALL_COPY) $(SOURCE_DIR)/$(NI-DRIVERS-BIN)/$(DRIVERS-BIN_DIR)/libcoolstream/$(shell echo -n $(FFMPEG_BRANCH) | sed 's,/,-,g')/. $(TARGET_libdir) $(INSTALL_COPY) $(SOURCE_DIR)/$(NI_DRIVERS_BIN)/$(DRIVERS_BIN_DIR)/libcoolstream/$(shell echo -n $(FFMPEG_BRANCH) | sed 's,/,-,g')/. $(TARGET_libdir)
ifeq ($(BOXMODEL),nevis) ifeq ($(BOXMODEL),nevis)
ln -sf libnxp.so $(TARGET_libdir)/libconexant.so ln -sf libnxp.so $(TARGET_libdir)/libconexant.so
endif endif
mkdir -p $(TARGET_modulesdir) mkdir -p $(TARGET_modulesdir)
$(INSTALL_COPY) $(SOURCE_DIR)/$(NI-DRIVERS-BIN)/$(DRIVERS-BIN_DIR)/lib-modules/$(KERNEL_VER)/. $(TARGET_modulesdir) $(INSTALL_COPY) $(SOURCE_DIR)/$(NI_DRIVERS_BIN)/$(DRIVERS_BIN_DIR)/lib-modules/$(KERNEL_VER)/. $(TARGET_modulesdir)
ifeq ($(BOXMODEL),nevis) ifeq ($(BOXMODEL),nevis)
ln -sf $(KERNEL_VER) $(TARGET_modulesdir)-$(BOXMODEL) ln -sf $(KERNEL_VER) $(TARGET_modulesdir)-$(BOXMODEL)
endif endif
@ -144,16 +144,16 @@ endif
hd51-drivers \ hd51-drivers \
bre2ze4k-drivers \ bre2ze4k-drivers \
h7-drivers: $(DL_DIR)/$(BOXMODEL-DRIVERS_SOURCE) | $(TARGET_DIR) h7-drivers: $(DL_DIR)/$(BOXMODEL_DRIVERS_SOURCE) | $(TARGET_DIR)
mkdir -p $(TARGET_modulesdir)/extra mkdir -p $(TARGET_modulesdir)/extra
unzip -o $(DL_DIR)/$(BOXMODEL-DRIVERS_SOURCE) -d $(TARGET_modulesdir)/extra unzip -o $(DL_DIR)/$(BOXMODEL_DRIVERS_SOURCE) -d $(TARGET_modulesdir)/extra
make depmod make depmod
$(TOUCH) $(TOUCH)
hd60-drivers \ hd60-drivers \
hd61-drivers: $(DL_DIR)/$(BOXMODEL-DRIVERS_SOURCE) | $(TARGET_DIR) hd61-drivers: $(DL_DIR)/$(BOXMODEL_DRIVERS_SOURCE) | $(TARGET_DIR)
mkdir -p $(TARGET_modulesdir)/extra mkdir -p $(TARGET_modulesdir)/extra
unzip -o $(DL_DIR)/$(BOXMODEL-DRIVERS_SOURCE) -d $(TARGET_modulesdir)/extra unzip -o $(DL_DIR)/$(BOXMODEL_DRIVERS_SOURCE) -d $(TARGET_modulesdir)/extra
rm -f $(TARGET_modulesdir)/extra/hi_play.ko rm -f $(TARGET_modulesdir)/extra/hi_play.ko
mv $(TARGET_modulesdir)/extra/turnoff_power $(TARGET_bindir) mv $(TARGET_modulesdir)/extra/turnoff_power $(TARGET_bindir)
make depmod make depmod
@ -167,107 +167,107 @@ vuzero4k-drivers \
vuuno4k-drivers \ vuuno4k-drivers \
vuuno4kse-drivers \ vuuno4kse-drivers \
vuduo-drivers \ vuduo-drivers \
vuplus-drivers: $(DL_DIR)/$(BOXMODEL-DRIVERS_SOURCE) | $(TARGET_DIR) vuplus-drivers: $(DL_DIR)/$(BOXMODEL_DRIVERS_SOURCE) | $(TARGET_DIR)
mkdir -p $(TARGET_modulesdir)/extra mkdir -p $(TARGET_modulesdir)/extra
tar -xf $(DL_DIR)/$(BOXMODEL-DRIVERS_SOURCE) -C $(TARGET_modulesdir)/extra tar -xf $(DL_DIR)/$(BOXMODEL_DRIVERS_SOURCE) -C $(TARGET_modulesdir)/extra
make depmod make depmod
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
HD51-LIBGLES_VER = 20191101 HD51_LIBGLES_VER = 20191101
HD51-LIBGLES_DIR = $(EMPTY) HD51_LIBGLES_DIR = $(empty)
HD51-LIBGLES_SOURCE = hd51-v3ddriver-$(HD51-LIBGLES_VER).zip HD51_LIBGLES_SOURCE = hd51-v3ddriver-$(HD51_LIBGLES_VER).zip
HD51-LIBGLES_SITE = http://downloads.mutant-digital.net/v3ddriver HD51_LIBGLES_SITE = http://downloads.mutant-digital.net/v3ddriver
BRE2ZE4K-LIBGLES_VER = 20191101 BRE2ZE4K_LIBGLES_VER = 20191101
BRE2ZE4K-LIBGLES_DIR = $(EMPTY) BRE2ZE4K_LIBGLES_DIR = $(empty)
BRE2ZE4K-LIBGLES_SOURCE = bre2ze4k-v3ddriver-$(BRE2ZE4K-LIBGLES_VER).zip BRE2ZE4K_LIBGLES_SOURCE = bre2ze4k-v3ddriver-$(BRE2ZE4K_LIBGLES_VER).zip
BRE2ZE4K-LIBGLES_SITE = http://downloads.mutant-digital.net/v3ddriver BRE2ZE4K_LIBGLES_SITE = http://downloads.mutant-digital.net/v3ddriver
H7-LIBGLES_VER = 20191110 H7_LIBGLES_VER = 20191110
H7-LIBGLES_DIR = $(EMPTY) H7_LIBGLES_DIR = $(empty)
H7-LIBGLES_SOURCE = h7-v3ddriver-$(H7-LIBGLES_VER).zip H7_LIBGLES_SOURCE = h7-v3ddriver-$(H7_LIBGLES_VER).zip
H7-LIBGLES_SITE = http://source.mynonpublic.com/zgemma H7_LIBGLES_SITE = http://source.mynonpublic.com/zgemma
HD60-LIBGLES_VER = 20181201 HD60_LIBGLES_VER = 20181201
HD60-LIBGLES_DIR = $(EMPTY) HD60_LIBGLES_DIR = $(empty)
HD60-LIBGLES_SOURCE = hd60-mali-$(HD60-LIBGLES_VER).zip HD60_LIBGLES_SOURCE = hd60-mali-$(HD60_LIBGLES_VER).zip
HD60-LIBGLES_SITE = http://downloads.mutant-digital.net/hd60 HD60_LIBGLES_SITE = http://downloads.mutant-digital.net/hd60
HD61-LIBGLES_VER = 20181201 HD61_LIBGLES_VER = 20181201
HD61-LIBGLES_DIR = $(EMPTY) HD61_LIBGLES_DIR = $(empty)
HD61-LIBGLES_SOURCE = hd61-mali-$(HD61-LIBGLES_VER).zip HD61_LIBGLES_SOURCE = hd61-mali-$(HD61_LIBGLES_VER).zip
HD61-LIBGLES_SITE = http://downloads.mutant-digital.net/hd61 HD61_LIBGLES_SITE = http://downloads.mutant-digital.net/hd61
HD6x-LIBGLES-HEADERS_SOURCE = libgles-mali-utgard-headers.zip HD6x_LIBGLES_HEADERS_SOURCE = libgles-mali-utgard-headers.zip
HD6x-LIBGLES-HEADERS_SITE = https://github.com/HD-Digital/meta-gfutures/raw/release-6.2/recipes-bsp/mali/files HD6x_LIBGLES_HEADERS_SITE = https://github.com/HD-Digital/meta-gfutures/raw/release-6.2/recipes-bsp/mali/files
VUSOLO4K-LIBGLES_VER = $(VUSOLO4K-DRIVERS_VER) VUSOLO4K_LIBGLES_VER = $(VUSOLO4K_DRIVERS_VER)
VUSOLO4K-LIBGLES_DIR = libgles-vusolo4k VUSOLO4K_LIBGLES_DIR = libgles-vusolo4k
VUSOLO4K-LIBGLES_SOURCE = libgles-vusolo4k-17.1-$(VUSOLO4K-LIBGLES_VER).r0.tar.gz VUSOLO4K_LIBGLES_SOURCE = libgles-vusolo4k-17.1-$(VUSOLO4K_LIBGLES_VER).r0.tar.gz
VUSOLO4K-LIBGLES_SITE = http://code.vuplus.com/download/release/libgles VUSOLO4K_LIBGLES_SITE = http://code.vuplus.com/download/release/libgles
VUDUO4K-LIBGLES_VER = $(VUDUO4K-DRIVERS_VER) VUDUO4K_LIBGLES_VER = $(VUDUO4K_DRIVERS_VER)
VUDUO4K-LIBGLES_DIR = libgles-vuduo4k VUDUO4K_LIBGLES_DIR = libgles-vuduo4k
VUDUO4K-LIBGLES_SOURCE = libgles-vuduo4k-18.1-$(VUDUO4K-LIBGLES_VER).r0.tar.gz VUDUO4K_LIBGLES_SOURCE = libgles-vuduo4k-18.1-$(VUDUO4K_LIBGLES_VER).r0.tar.gz
VUDUO4K-LIBGLES_SITE = http://code.vuplus.com/download/release/libgles VUDUO4K_LIBGLES_SITE = http://code.vuplus.com/download/release/libgles
VUDUO4KSE-LIBGLES_VER = $(VUDUO4KSE-DRIVERS_VER) VUDUO4KSE_LIBGLES_VER = $(VUDUO4KSE_DRIVERS_VER)
VUDUO4KSE-LIBGLES_DIR = libgles-vuduo4kse VUDUO4KSE_LIBGLES_DIR = libgles-vuduo4kse
VUDUO4KSE-LIBGLES_SOURCE = libgles-vuduo4kse-17.1-$(VUDUO4KSE-LIBGLES_VER).r0.tar.gz VUDUO4KSE_LIBGLES_SOURCE = libgles-vuduo4kse-17.1-$(VUDUO4KSE_LIBGLES_VER).r0.tar.gz
VUDUO4KSE-LIBGLES_SITE = http://code.vuplus.com/download/release/libgles VUDUO4KSE_LIBGLES_SITE = http://code.vuplus.com/download/release/libgles
VUULTIMO4K-LIBGLES_VER = $(VUULTIMO4K-DRIVERS_VER) VUULTIMO4K_LIBGLES_VER = $(VUULTIMO4K_DRIVERS_VER)
VUULTIMO4K-LIBGLES_DIR = libgles-vuultimo4k VUULTIMO4K_LIBGLES_DIR = libgles-vuultimo4k
VUULTIMO4K-LIBGLES_SOURCE = libgles-vuultimo4k-17.1-$(VUULTIMO4K-LIBGLES_VER).r0.tar.gz VUULTIMO4K_LIBGLES_SOURCE = libgles-vuultimo4k-17.1-$(VUULTIMO4K_LIBGLES_VER).r0.tar.gz
VUULTIMO4K-LIBGLES_SITE = http://code.vuplus.com/download/release/libgles VUULTIMO4K_LIBGLES_SITE = http://code.vuplus.com/download/release/libgles
VUZERO4K-LIBGLES_VER = $(VUZERO4K-DRIVERS_VER) VUZERO4K_LIBGLES_VER = $(VUZERO4K_DRIVERS_VER)
VUZERO4K-LIBGLES_DIR = libgles-vuzero4k VUZERO4K_LIBGLES_DIR = libgles-vuzero4k
VUZERO4K-LIBGLES_SOURCE = libgles-vuzero4k-17.1-$(VUZERO4K-LIBGLES_VER).r0.tar.gz VUZERO4K_LIBGLES_SOURCE = libgles-vuzero4k-17.1-$(VUZERO4K_LIBGLES_VER).r0.tar.gz
VUZERO4K-LIBGLES_SITE = http://code.vuplus.com/download/release/libgles VUZERO4K_LIBGLES_SITE = http://code.vuplus.com/download/release/libgles
VUUNO4K-LIBGLES_VER = $(VUUNO4K-DRIVERS_VER) VUUNO4K_LIBGLES_VER = $(VUUNO4K_DRIVERS_VER)
VUUNO4K-LIBGLES_DIR = libgles-vuuno4k VUUNO4K_LIBGLES_DIR = libgles-vuuno4k
VUUNO4K-LIBGLES_SOURCE = libgles-vuuno4k-17.1-$(VUUNO4K-LIBGLES_VER).r0.tar.gz VUUNO4K_LIBGLES_SOURCE = libgles-vuuno4k-17.1-$(VUUNO4K_LIBGLES_VER).r0.tar.gz
VUUNO4K-LIBGLES_SITE = http://code.vuplus.com/download/release/libgles VUUNO4K_LIBGLES_SITE = http://code.vuplus.com/download/release/libgles
VUUNO4KSE-LIBGLES_VER = $(VUUNO4KSE-DRIVERS_VER) VUUNO4KSE_LIBGLES_VER = $(VUUNO4KSE_DRIVERS_VER)
VUUNO4KSE-LIBGLES_DIR = libgles-vuuno4kse VUUNO4KSE_LIBGLES_DIR = libgles-vuuno4kse
VUUNO4KSE-LIBGLES_SOURCE = libgles-vuuno4kse-17.1-$(VUUNO4KSE-LIBGLES_VER).r0.tar.gz VUUNO4KSE_LIBGLES_SOURCE = libgles-vuuno4kse-17.1-$(VUUNO4KSE_LIBGLES_VER).r0.tar.gz
VUUNO4KSE-LIBGLES_SITE = http://code.vuplus.com/download/release/libgles VUUNO4KSE_LIBGLES_SITE = http://code.vuplus.com/download/release/libgles
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
BOXMODEL-LIBGLES_VER = $($(call UPPERCASE,$(BOXMODEL))-LIBGLES_VER) BOXMODEL_LIBGLES_VER = $($(call UPPERCASE,$(BOXMODEL))_LIBGLES_VER)
BOXMODEL-LIBGLES_DIR = $($(call UPPERCASE,$(BOXMODEL))-LIBGLES_DIR) BOXMODEL_LIBGLES_DIR = $($(call UPPERCASE,$(BOXMODEL))_LIBGLES_DIR)
BOXMODEL-LIBGLES_SOURCE = $($(call UPPERCASE,$(BOXMODEL))-LIBGLES_SOURCE) BOXMODEL_LIBGLES_SOURCE = $($(call UPPERCASE,$(BOXMODEL))_LIBGLES_SOURCE)
BOXMODEL-LIBGLES_SITE = $($(call UPPERCASE,$(BOXMODEL))-LIBGLES_SITE) BOXMODEL_LIBGLES_SITE = $($(call UPPERCASE,$(BOXMODEL))_LIBGLES_SITE)
ifneq ($(BOXMODEL-LIBGLES_SOURCE),$(EMPTY)) ifneq ($(BOXMODEL_LIBGLES_SOURCE),$(empty))
$(DL_DIR)/$(BOXMODEL-LIBGLES_SOURCE): $(DL_DIR)/$(BOXMODEL_LIBGLES_SOURCE):
$(DOWNLOAD) $(BOXMODEL-LIBGLES_SITE)/$(BOXMODEL-LIBGLES_SOURCE) $(DOWNLOAD) $(BOXMODEL_LIBGLES_SITE)/$(BOXMODEL_LIBGLES_SOURCE)
endif endif
hd51-libgles \ hd51-libgles \
bre2ze4k-libgles \ bre2ze4k-libgles \
h7-libgles: $(DL_DIR)/$(BOXMODEL-LIBGLES_SOURCE) | $(TARGET_DIR) h7-libgles: $(DL_DIR)/$(BOXMODEL_LIBGLES_SOURCE) | $(TARGET_DIR)
unzip -o $(DL_DIR)/$(BOXMODEL-LIBGLES_SOURCE) -d $(TARGET_libdir) unzip -o $(DL_DIR)/$(BOXMODEL_LIBGLES_SOURCE) -d $(TARGET_libdir)
ln -sf libv3ddriver.so $(TARGET_libdir)/libEGL.so ln -sf libv3ddriver.so $(TARGET_libdir)/libEGL.so
ln -sf libv3ddriver.so $(TARGET_libdir)/libGLESv2.so ln -sf libv3ddriver.so $(TARGET_libdir)/libGLESv2.so
$(TOUCH) $(TOUCH)
$(DL_DIR)/$(HD6x-LIBGLES-HEADERS_SOURCE): $(DL_DIR)/$(HD6x_LIBGLES_HEADERS_SOURCE):
$(DOWNLOAD) $(HD6x-LIBGLES-HEADERS_SITE)/$(HD6x-LIBGLES-HEADERS_SOURCE) $(DOWNLOAD) $(HD6x_LIBGLES_HEADERS_SITE)/$(HD6x_LIBGLES_HEADERS_SOURCE)
hd6x-libgles-headers: $(DL_DIR)/$(HD6x-LIBGLES-HEADERS_SOURCE) | $(TARGET_DIR) hd6x-libgles-headers: $(DL_DIR)/$(HD6x_LIBGLES_HEADERS_SOURCE) | $(TARGET_DIR)
unzip -o $(DL_DIR)/$(HD6x-LIBGLES-HEADERS_SOURCE) -d $(TARGET_includedir) unzip -o $(DL_DIR)/$(HD6x_LIBGLES_HEADERS_SOURCE) -d $(TARGET_includedir)
$(TOUCH) $(TOUCH)
hd60-libgles \ hd60-libgles \
hd61-libgles: $(DL_DIR)/$(BOXMODEL-LIBGLES_SOURCE) | $(TARGET_DIR) hd61-libgles: $(DL_DIR)/$(BOXMODEL_LIBGLES_SOURCE) | $(TARGET_DIR)
unzip -o $(DL_DIR)/$(BOXMODEL-LIBGLES_SOURCE) -d $(TARGET_libdir) unzip -o $(DL_DIR)/$(BOXMODEL_LIBGLES_SOURCE) -d $(TARGET_libdir)
$(CD) $(TARGET_libdir); \ $(CD) $(TARGET_libdir); \
ln -sf libMali.so libmali.so; \ ln -sf libMali.so libmali.so; \
ln -sf libMali.so libEGL.so.1.4; ln -sf libEGL.so.1.4 libEGL.so.1; ln -sf libEGL.so.1 libEGL.so; \ ln -sf libMali.so libEGL.so.1.4; ln -sf libEGL.so.1.4 libEGL.so.1; ln -sf libEGL.so.1 libEGL.so; \
@ -283,107 +283,107 @@ vuultimo4k-libgles \
vuzero4k-libgles \ vuzero4k-libgles \
vuuno4k-libgles \ vuuno4k-libgles \
vuuno4kse-libgles \ vuuno4kse-libgles \
vuplus-libgles: $(DL_DIR)/$(BOXMODEL-LIBGLES_SOURCE) | $(TARGET_DIR) vuplus-libgles: $(DL_DIR)/$(BOXMODEL_LIBGLES_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(BOXMODEL-LIBGLES_DIR) $(REMOVE)/$(BOXMODEL_LIBGLES_DIR)
$(UNTAR)/$(BOXMODEL-LIBGLES_SOURCE) $(UNTAR)/$(BOXMODEL_LIBGLES_SOURCE)
$(INSTALL_EXEC) $(BUILD_DIR)/$(BOXMODEL-LIBGLES_DIR)/lib/* $(TARGET_libdir) $(INSTALL_EXEC) $(BUILD_DIR)/$(BOXMODEL_LIBGLES_DIR)/lib/* $(TARGET_libdir)
ln -sf libv3ddriver.so $(TARGET_libdir)/libEGL.so ln -sf libv3ddriver.so $(TARGET_libdir)/libEGL.so
ln -sf libv3ddriver.so $(TARGET_libdir)/libGLESv2.so ln -sf libv3ddriver.so $(TARGET_libdir)/libGLESv2.so
$(INSTALL_COPY) $(BUILD_DIR)/$(BOXMODEL-LIBGLES_DIR)/include/* $(TARGET_includedir) $(INSTALL_COPY) $(BUILD_DIR)/$(BOXMODEL_LIBGLES_DIR)/include/* $(TARGET_includedir)
$(REMOVE)/$(BOXMODEL-LIBGLES_DIR) $(REMOVE)/$(BOXMODEL_LIBGLES_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
HD60-LIBS_VER = 20200622 HD60_LIBS_VER = 20200622
HD60-LIBS_DIR = hiplay HD60_LIBS_DIR = hiplay
HD60-LIBS_SOURCE = gfutures-libs-3798mv200-$(HD60-LIBS_VER).zip HD60_LIBS_SOURCE = gfutures-libs-3798mv200-$(HD60_LIBS_VER).zip
HD60-LIBS_SITE = http://source.mynonpublic.com/gfutures HD60_LIBS_SITE = http://source.mynonpublic.com/gfutures
HD61-LIBS_VER = 20200622 HD61_LIBS_VER = 20200622
HD61-LIBS_DIR = hiplay HD61_LIBS_DIR = hiplay
HD61-LIBS_SOURCE = gfutures-libs-3798mv200-$(HD61-LIBS_VER).zip HD61_LIBS_SOURCE = gfutures-libs-3798mv200-$(HD61_LIBS_VER).zip
HD61-LIBS_SITE = http://source.mynonpublic.com/gfutures HD61_LIBS_SITE = http://source.mynonpublic.com/gfutures
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
BOXMODEL-LIBS_VER = $($(call UPPERCASE,$(BOXMODEL))-LIBS_VER) BOXMODEL_LIBS_VER = $($(call UPPERCASE,$(BOXMODEL))_LIBS_VER)
BOXMODEL-LIBS_DIR = $($(call UPPERCASE,$(BOXMODEL))-LIBS_DIR) BOXMODEL_LIBS_DIR = $($(call UPPERCASE,$(BOXMODEL))_LIBS_DIR)
BOXMODEL-LIBS_SOURCE = $($(call UPPERCASE,$(BOXMODEL))-LIBS_SOURCE) BOXMODEL_LIBS_SOURCE = $($(call UPPERCASE,$(BOXMODEL))_LIBS_SOURCE)
BOXMODEL-LIBS_SITE = $($(call UPPERCASE,$(BOXMODEL))-LIBS_SITE) BOXMODEL_LIBS_SITE = $($(call UPPERCASE,$(BOXMODEL))_LIBS_SITE)
ifneq ($(BOXMODEL-LIBS_SOURCE),$(EMPTY)) ifneq ($(BOXMODEL_LIBS_SOURCE),$(empty))
$(DL_DIR)/$(BOXMODEL-LIBS_SOURCE): $(DL_DIR)/$(BOXMODEL_LIBS_SOURCE):
$(DOWNLOAD) $(BOXMODEL-LIBS_SITE)/$(BOXMODEL-LIBS_SOURCE) $(DOWNLOAD) $(BOXMODEL_LIBS_SITE)/$(BOXMODEL_LIBS_SOURCE)
endif endif
hd60-libs \ hd60-libs \
hd61-libs: $(DL_DIR)/$(BOXMODEL-LIBS_SOURCE) | $(TARGET_DIR) hd61-libs: $(DL_DIR)/$(BOXMODEL_LIBS_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(BOXMODEL-LIBS_DIR) $(REMOVE)/$(BOXMODEL_LIBS_DIR)
unzip -o $(DL_DIR)/$(BOXMODEL-LIBS_SOURCE) -d $(BUILD_DIR)/$(BOXMODEL-LIBS_DIR) unzip -o $(DL_DIR)/$(BOXMODEL_LIBS_SOURCE) -d $(BUILD_DIR)/$(BOXMODEL_LIBS_DIR)
mkdir -p $(TARGET_libdir)/hisilicon mkdir -p $(TARGET_libdir)/hisilicon
$(INSTALL_EXEC) $(BUILD_DIR)/$(BOXMODEL-LIBS_DIR)/hisilicon/* $(TARGET_libdir)/hisilicon $(INSTALL_EXEC) $(BUILD_DIR)/$(BOXMODEL_LIBS_DIR)/hisilicon/* $(TARGET_libdir)/hisilicon
$(INSTALL_EXEC) $(BUILD_DIR)/$(BOXMODEL-LIBS_DIR)/ffmpeg/* $(TARGET_libdir)/hisilicon $(INSTALL_EXEC) $(BUILD_DIR)/$(BOXMODEL_LIBS_DIR)/ffmpeg/* $(TARGET_libdir)/hisilicon
ln -sf /lib/ld-linux-armhf.so.3 $(TARGET_libdir)/hisilicon/ld-linux.so ln -sf /lib/ld-linux-armhf.so.3 $(TARGET_libdir)/hisilicon/ld-linux.so
$(REMOVE)/$(BOXMODEL-LIBS_DIR) $(REMOVE)/$(BOXMODEL_LIBS_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
VUSOLO4K-PLATFORM-UTIL_VER = $(VUSOLO4K-DRIVERS_VER) VUSOLO4K_PLATFORM_UTIL_VER = $(VUSOLO4K_DRIVERS_VER)
VUSOLO4K-PLATFORM-UTIL_DIR = platform-util-vusolo4k VUSOLO4K_PLATFORM_UTIL_DIR = platform-util-vusolo4k
VUSOLO4K-PLATFORM-UTIL_SOURCE = platform-util-vusolo4k-17.1-$(VUSOLO4K-PLATFORM-UTIL_VER).r0.tar.gz VUSOLO4K_PLATFORM_UTIL_SOURCE = platform-util-vusolo4k-17.1-$(VUSOLO4K_PLATFORM_UTIL_VER).r0.tar.gz
VUSOLO4K-PLATFORM-UTIL_SITE = http://code.vuplus.com/download/release/platform-util VUSOLO4K_PLATFORM_UTIL_SITE = http://code.vuplus.com/download/release/platform-util
VUDUO4K-PLATFORM-UTIL_VER = $(VUDUO4K-DRIVERS_VER) VUDUO4K_PLATFORM_UTIL_VER = $(VUDUO4K_DRIVERS_VER)
VUDUO4K-PLATFORM-UTIL_DIR = platform-util-vuduo4k VUDUO4K_PLATFORM_UTIL_DIR = platform-util-vuduo4k
VUDUO4K-PLATFORM-UTIL_SOURCE = platform-util-vuduo4k-18.1-$(VUDUO4K-PLATFORM-UTIL_VER).r0.tar.gz VUDUO4K_PLATFORM_UTIL_SOURCE = platform-util-vuduo4k-18.1-$(VUDUO4K_PLATFORM_UTIL_VER).r0.tar.gz
VUDUO4K-PLATFORM-UTIL_SITE = http://code.vuplus.com/download/release/platform-util VUDUO4K_PLATFORM_UTIL_SITE = http://code.vuplus.com/download/release/platform-util
VUDUO4KSE-PLATFORM-UTIL_VER = $(VUDUO4KSE-DRIVERS_VER) VUDUO4KSE_PLATFORM_UTIL_VER = $(VUDUO4KSE_DRIVERS_VER)
VUDUO4KSE-PLATFORM-UTIL_DIR = platform-util-vuduo4kse VUDUO4KSE_PLATFORM_UTIL_DIR = platform-util-vuduo4kse
VUDUO4KSE-PLATFORM-UTIL_SOURCE = platform-util-vuduo4kse-17.1-$(VUDUO4KSE-PLATFORM-UTIL_VER).r0.tar.gz VUDUO4KSE_PLATFORM_UTIL_SOURCE = platform-util-vuduo4kse-17.1-$(VUDUO4KSE_PLATFORM_UTIL_VER).r0.tar.gz
VUDUO4KSE-PLATFORM-UTIL_SITE = http://code.vuplus.com/download/release/platform-util VUDUO4KSE_PLATFORM_UTIL_SITE = http://code.vuplus.com/download/release/platform-util
VUULTIMO4K-PLATFORM-UTIL_VER = $(VUULTIMO4K-DRIVERS_VER) VUULTIMO4K_PLATFORM_UTIL_VER = $(VUULTIMO4K_DRIVERS_VER)
VUULTIMO4K-PLATFORM-UTIL_DIR = platform-util-vuultimo4k VUULTIMO4K_PLATFORM_UTIL_DIR = platform-util-vuultimo4k
VUULTIMO4K-PLATFORM-UTIL_SOURCE = platform-util-vuultimo4k-17.1-$(VUULTIMO4K-PLATFORM-UTIL_VER).r0.tar.gz VUULTIMO4K_PLATFORM_UTIL_SOURCE = platform-util-vuultimo4k-17.1-$(VUULTIMO4K_PLATFORM_UTIL_VER).r0.tar.gz
VUULTIMO4K-PLATFORM-UTIL_SITE = http://code.vuplus.com/download/release/platform-util VUULTIMO4K_PLATFORM_UTIL_SITE = http://code.vuplus.com/download/release/platform-util
VUZERO4K-PLATFORM-UTIL_VER = $(VUZERO4K-DRIVERS_VER) VUZERO4K_PLATFORM_UTIL_VER = $(VUZERO4K_DRIVERS_VER)
VUZERO4K-PLATFORM-UTIL_DIR = platform-util-vuzero4k VUZERO4K_PLATFORM_UTIL_DIR = platform-util-vuzero4k
VUZERO4K-PLATFORM-UTIL_SOURCE = platform-util-vuzero4k-17.1-$(VUZERO4K-PLATFORM-UTIL_VER).r0.tar.gz VUZERO4K_PLATFORM_UTIL_SOURCE = platform-util-vuzero4k-17.1-$(VUZERO4K_PLATFORM_UTIL_VER).r0.tar.gz
VUZERO4K-PLATFORM-UTIL_SITE = http://code.vuplus.com/download/release/platform-util VUZERO4K_PLATFORM_UTIL_SITE = http://code.vuplus.com/download/release/platform-util
VUUNO4K-PLATFORM-UTIL_VER = $(VUUNO4K-DRIVERS_VER) VUUNO4K_PLATFORM_UTIL_VER = $(VUUNO4K_DRIVERS_VER)
VUUNO4K-PLATFORM-UTIL_DIR = platform-util-vuuno4k VUUNO4K_PLATFORM_UTIL_DIR = platform-util-vuuno4k
VUUNO4K-PLATFORM-UTIL_SOURCE = platform-util-vuuno4k-17.1-$(VUUNO4K-PLATFORM-UTIL_VER).r0.tar.gz VUUNO4K_PLATFORM_UTIL_SOURCE = platform-util-vuuno4k-17.1-$(VUUNO4K_PLATFORM_UTIL_VER).r0.tar.gz
VUUNO4K-PLATFORM-UTIL_SITE = http://code.vuplus.com/download/release/platform-util VUUNO4K_PLATFORM_UTIL_SITE = http://code.vuplus.com/download/release/platform-util
VUUNO4KSE-PLATFORM-UTIL_VER = $(VUUNO4KSE-DRIVERS_VER) VUUNO4KSE_PLATFORM_UTIL_VER = $(VUUNO4KSE_DRIVERS_VER)
VUUNO4KSE-PLATFORM-UTIL_DIR = platform-util-vuuno4kse VUUNO4KSE_PLATFORM_UTIL_DIR = platform-util-vuuno4kse
VUUNO4KSE-PLATFORM-UTIL_SOURCE = platform-util-vuuno4kse-17.1-$(VUUNO4KSE-PLATFORM-UTIL_VER).r0.tar.gz VUUNO4KSE_PLATFORM_UTIL_SOURCE = platform-util-vuuno4kse-17.1-$(VUUNO4KSE_PLATFORM_UTIL_VER).r0.tar.gz
VUUNO4KSE-PLATFORM-UTIL_SITE = http://code.vuplus.com/download/release/platform-util VUUNO4KSE_PLATFORM_UTIL_SITE = http://code.vuplus.com/download/release/platform-util
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
BOXMODEL-PLATFORM-UTIL_VER = $($(call UPPERCASE,$(BOXMODEL))-PLATFORM-UTIL_VER) BOXMODEL_PLATFORM_UTIL_VER = $($(call UPPERCASE,$(BOXMODEL))_PLATFORM_UTIL_VER)
BOXMODEL-PLATFORM-UTIL_DIR = $($(call UPPERCASE,$(BOXMODEL))-PLATFORM-UTIL_DIR) BOXMODEL_PLATFORM_UTIL_DIR = $($(call UPPERCASE,$(BOXMODEL))_PLATFORM_UTIL_DIR)
BOXMODEL-PLATFORM-UTIL_SOURCE = $($(call UPPERCASE,$(BOXMODEL))-PLATFORM-UTIL_SOURCE) BOXMODEL_PLATFORM_UTIL_SOURCE = $($(call UPPERCASE,$(BOXMODEL))_PLATFORM_UTIL_SOURCE)
BOXMODEL-PLATFORM-UTIL_SITE = $($(call UPPERCASE,$(BOXMODEL))-PLATFORM-UTIL_SITE) BOXMODEL_PLATFORM_UTIL_SITE = $($(call UPPERCASE,$(BOXMODEL))_PLATFORM_UTIL_SITE)
ifneq ($(BOXMODEL-PLATFORM-UTIL_SOURCE),$(EMPTY)) ifneq ($(BOXMODEL_PLATFORM_UTIL_SOURCE),$(empty))
$(DL_DIR)/$(BOXMODEL-PLATFORM-UTIL_SOURCE): $(DL_DIR)/$(BOXMODEL_PLATFORM_UTIL_SOURCE):
$(DOWNLOAD) $(BOXMODEL-PLATFORM-UTIL_SITE)/$(BOXMODEL-PLATFORM-UTIL_SOURCE) $(DOWNLOAD) $(BOXMODEL_PLATFORM_UTIL_SITE)/$(BOXMODEL_PLATFORM_UTIL_SOURCE)
endif endif
vuplus-platform-util: $(DL_DIR)/$(BOXMODEL-PLATFORM-UTIL_SOURCE) | $(TARGET_DIR) vuplus-platform-util: $(DL_DIR)/$(BOXMODEL_PLATFORM_UTIL_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(BOXMODEL-PLATFORM-UTIL_DIR) $(REMOVE)/$(BOXMODEL_PLATFORM_UTIL_DIR)
$(UNTAR)/$(BOXMODEL-PLATFORM-UTIL_SOURCE) $(UNTAR)/$(BOXMODEL_PLATFORM_UTIL_SOURCE)
$(INSTALL_EXEC) -D $(BUILD_DIR)/$(BOXMODEL-PLATFORM-UTIL_DIR)/* $(TARGET_bindir) $(INSTALL_EXEC) -D $(BUILD_DIR)/$(BOXMODEL_PLATFORM_UTIL_DIR)/* $(TARGET_bindir)
$(INSTALL_EXEC) -D $(TARGET_FILES)/scripts/vuplus-platform-util.init $(TARGET_sysconfdir)/init.d/vuplus-platform-util $(INSTALL_EXEC) -D $(TARGET_FILES)/scripts/vuplus-platform-util.init $(TARGET_sysconfdir)/init.d/vuplus-platform-util
ifeq ($(BOXMODEL),$(filter $(BOXMODEL),vuduo4k)) ifeq ($(BOXMODEL),$(filter $(BOXMODEL),vuduo4k))
$(INSTALL_EXEC) -D $(TARGET_FILES)/scripts/bp3flash.sh $(TARGET_bindir)/bp3flash.sh $(INSTALL_EXEC) -D $(TARGET_FILES)/scripts/bp3flash.sh $(TARGET_bindir)/bp3flash.sh
endif endif
$(REMOVE)/$(BOXMODEL-PLATFORM-UTIL_DIR) $(REMOVE)/$(BOXMODEL_PLATFORM_UTIL_DIR)
$(TOUCH) $(TOUCH)

84
make/target-development.mk

@ -3,13 +3,6 @@
# #
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
VALGRIND_TARGET = $(if $(filter $(BOXMODEL),nevis),valgrind12305, valgrind3)
valgrind: $(VALGRIND_TARGET)
$(TOUCH)
# -----------------------------------------------------------------------------
VALGRIND_VER = 3.13.0 VALGRIND_VER = 3.13.0
VALGRIND_DIR = valgrind-$(VALGRIND_VER) VALGRIND_DIR = valgrind-$(VALGRIND_VER)
VALGRIND_SOURCE = valgrind-$(VALGRIND_VER).tar.bz2 VALGRIND_SOURCE = valgrind-$(VALGRIND_VER).tar.bz2
@ -20,47 +13,23 @@ $(DL_DIR)/$(VALGRIND_SOURCE):
VALGRIND_PATCH = valgrind-fix-build-$(TARGET_CPU).patch VALGRIND_PATCH = valgrind-fix-build-$(TARGET_CPU).patch
valgrind3: $(DL_DIR)/$(VALGRIND_SOURCE) | $(TARGET_DIR) VALGRIND_AUTORECONF = YES
$(REMOVE)/$(VALGRIND_DIR)
$(UNTAR)/$(VALGRIND_SOURCE)
$(CHDIR)/$(VALGRIND_DIR); \
$(call apply_patches,$(VALGRIND_PATCH)); \
export AR=$(TARGET_AR); \
autoreconf -fi; \
$(CONFIGURE) \
--prefix=$(prefix) \
--enable-only32bit \
--mandir=$(REMOVE_mandir) \
--datadir=$(REMOVE_datadir) \
; \
$(MAKE); \
make install DESTDIR=$(TARGET_DIR)
rm -f $(addprefix $(TARGET_libdir)/valgrind/,*.a *.xml)
rm -f $(addprefix $(TARGET_bindir)/,cg_* callgrind_* ms_print)
$(REMOVE)/$(VALGRIND_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
VALGRIND12305_PATCH = valgrind12305-nevis-patch.diff VALGRIND_CONF_OPTS = \
VALGRIND12305_PATCH += valgrind12305-automake-1.11.2.patch
valgrind12305: | $(TARGET_DIR)
$(REMOVE)/valgrind
svn co -r 12305 svn://svn.valgrind.org/valgrind/trunk $(BUILD_DIR)/valgrind; \
$(CHDIR)/valgrind; \
svn up --force -r {2011-12-13} VEX; \
$(call apply_patches,$(VALGRIND12305_PATCH)); \
autoreconf -fi; \
$(CONFIGURE) \
--prefix=$(prefix) \
--enable-only32bit \ --enable-only32bit \
--mandir=$(REMOVE_mandir) \ --datadir=$(REMOVE_datadir)
--datadir=$(REMOVE_datadir) \
; \ valgrind: $(DL_DIR)/$(VALGRIND_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(call apply_patches,$(PKG_PATCH)); \
$(CONFIGURE); \
$(MAKE); \ $(MAKE); \
make install DESTDIR=$(TARGET_DIR) make install DESTDIR=$(TARGET_DIR)
$(REMOVE)/valgrind -rm $(addprefix $(TARGET_libdir)/valgrind/,*.a *.xml)
-rm $(addprefix $(TARGET_bindir)/,cg_* callgrind_* ms_print)
$(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -77,14 +46,10 @@ strace: $(DL_DIR)/$(STRACE_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(STRACE_DIR) $(REMOVE)/$(STRACE_DIR)
$(UNTAR)/$(STRACE_SOURCE) $(UNTAR)/$(STRACE_SOURCE)
$(CHDIR)/$(STRACE_DIR); \ $(CHDIR)/$(STRACE_DIR); \
$(CONFIGURE) \ $(CONFIGURE); \
--prefix=$(prefix) \
--mandir=$(REMOVE_mandir) \
--enable-silent-rules \
; \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR) $(MAKE) install DESTDIR=$(TARGET_DIR)
rm -f $(addprefix $(TARGET_bindir)/,strace-graph strace-log-merge) -rm $(addprefix $(TARGET_bindir)/,strace-graph strace-log-merge)
$(REMOVE)/$(STRACE_DIR) $(REMOVE)/$(STRACE_DIR)
$(TOUCH) $(TOUCH)
@ -100,13 +65,7 @@ $(DL_DIR)/$(GDB_SOURCE):
GDB_DEPS = zlib ncurses GDB_DEPS = zlib ncurses
gdb: $(GDB_DEPS) $(DL_DIR)/$(GDB_SOURCE) | $(TARGET_DIR) GDB_CONF_OPTS = \
$(REMOVE)/$(GDB_DIR)
$(UNTAR)/$(GDB_SOURCE)
$(CHDIR)/$(GDB_DIR); \
$(CONFIGURE) \
--prefix=$(prefix) \
--mandir=$(REMOVE_mandir) \
--infodir=$(REMOVE_infodir) \ --infodir=$(REMOVE_infodir) \
--disable-binutils \ --disable-binutils \
--disable-gdbserver \ --disable-gdbserver \
@ -119,11 +78,16 @@ gdb: $(GDB_DEPS) $(DL_DIR)/$(GDB_SOURCE) | $(TARGET_DIR)
--without-mpfr \ --without-mpfr \
--without-uiout \ --without-uiout \
--without-x \ --without-x \
--enable-static \ --enable-static
; \
gdb: $(GDB_DEPS) $(DL_DIR)/$(GDB_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(GDB_DIR)
$(UNTAR)/$(GDB_SOURCE)
$(CHDIR)/$(GDB_DIR); \
$(CONFIGURE); \
$(MAKE) all-gdb; \ $(MAKE) all-gdb; \
$(MAKE) install-gdb DESTDIR=$(TARGET_DIR) $(MAKE) install-gdb DESTDIR=$(TARGET_DIR)
rm -rf $(addprefix $(TARGET_datadir)/,system-gdbinit) -rm $(addprefix $(TARGET_datadir)/,system-gdbinit)
find $(TARGET_datadir)/gdb/syscalls -type f -not -name 'arm-linux.xml' -not -name 'gdb-syscalls.dtd' -print0 | xargs -0 rm -- find $(TARGET_datadir)/gdb/syscalls -type f -not -name 'arm-linux.xml' -not -name 'gdb-syscalls.dtd' -print0 | xargs -0 rm --
$(REMOVE)/$(GDB_DIR) $(REMOVE)/$(GDB_DIR)
$(TOUCH) $(TOUCH)

52
make/target-ffmpeg-coolstream.mk

@ -4,25 +4,10 @@
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
FFMPEG_BRANCH ?= ni/ffmpeg/2.8 FFMPEG_BRANCH ?= ni/ffmpeg/2.8
#FFMPEG_BRANCH ?= ni/ffmpeg/master
#FFMPEG_BRANCH ?= ffmpeg/master #FFMPEG_BRANCH ?= ffmpeg/master
FFMPEG_DEPS = openssl rtmpdump libbluray libass FFMPEG_CONF_OPTS = \
# -----------------------------------------------------------------------------
ifeq ($(FFMPEG_BRANCH),ni/ffmpeg/2.8)
FFMPEG_DEPS += libroxml
FFMPEG_CONFIGURE_BRANCH =
else
FFMPEG_DEPS += libxml2
FFMPEG_CONFIGURE_BRANCH = \
--enable-demuxer=dash \
--enable-libxml2
endif
# -----------------------------------------------------------------------------
FFMPEG_CONFIGURE_GENERIC = \
--prefix=$(prefix) \ --prefix=$(prefix) \
--cross-prefix=$(TARGET_CROSS) \ --cross-prefix=$(TARGET_CROSS) \
--datadir=$(REMOVE_datadir) \ --datadir=$(REMOVE_datadir) \
@ -153,17 +138,26 @@ FFMPEG_CONFIGURE_GENERIC = \
--arch=$(TARGET_ARCH) \ --arch=$(TARGET_ARCH) \
--extra-ldflags="$(TARGET_LDFLAGS)" --extra-ldflags="$(TARGET_LDFLAGS)"
# ----------------------------------------------------------------------------- FFMPEG_DEPS = openssl rtmpdump libbluray libass
ifeq ($(FFMPEG_BRANCH),ni/ffmpeg/2.8)
FFMPEG_DEPS += libroxml
else
FFMPEG_DEPS += libxml2
FFMPEG_CONF_OPTS += \
--enable-demuxer=dash \
--enable-libxml2
endif
ifeq ($(BOXSERIES),hd1) ifeq ($(BOXSERIES),hd1)
FFMPEG_CONFIGURE_PLATFORM = \ FFMPEG_CONF_OPTS += \
--enable-small \ --enable-small \
--cpu=armv6 \ --cpu=armv6 \
--extra-cflags="-Wno-deprecated-declarations -I$(TARGET_includedir)" --extra-cflags="-Wno-deprecated-declarations -I$(TARGET_includedir)"
endif endif
ifeq ($(BOXSERIES),hd2) ifeq ($(BOXSERIES),hd2)
FFMPEG_CONFIGURE_PLATFORM = \ FFMPEG_CONF_OPTS += \
--enable-decoder=h264 \ --enable-decoder=h264 \
--enable-decoder=vc1 \ --enable-decoder=vc1 \
--enable-hardcoded-tables \ --enable-hardcoded-tables \
@ -171,20 +165,14 @@ ifeq ($(BOXSERIES),hd2)
--extra-cflags="-Wno-deprecated-declarations -I$(TARGET_includedir) -mfpu=vfpv3-d16 -mfloat-abi=hard" --extra-cflags="-Wno-deprecated-declarations -I$(TARGET_includedir) -mfpu=vfpv3-d16 -mfloat-abi=hard"
endif endif
# -----------------------------------------------------------------------------
ffmpeg: $(FFMPEG_DEPS) | $(TARGET_DIR) ffmpeg: $(FFMPEG_DEPS) | $(TARGET_DIR)
$(REMOVE)/$(NI-FFMPEG) $(REMOVE)/$(NI_FFMPEG)
$(CD) $(SOURCE_DIR)/$(NI-FFMPEG); \ $(CD) $(SOURCE_DIR)/$(NI_FFMPEG); \
git checkout $(FFMPEG_BRANCH) git checkout $(FFMPEG_BRANCH)
tar -C $(SOURCE_DIR) -cp $(NI-FFMPEG) --exclude-vcs | tar -C $(BUILD_DIR) -x tar -C $(SOURCE_DIR) -cp $(NI_FFMPEG) --exclude-vcs | tar -C $(BUILD_DIR) -x
$(CHDIR)/$(NI-FFMPEG); \ $(CHDIR)/$(NI_FFMPEG); \
./configure \ ./configure $($(PKG)_CONF_OPTS); \
$(FFMPEG_CONFIGURE_GENERIC) \
$(FFMPEG_CONFIGURE_PLATFORM) \
$(FFMPEG_CONFIGURE_BRANCH) \
; \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR) $(MAKE) install DESTDIR=$(TARGET_DIR)
$(REMOVE)/$(NI-FFMPEG) $(REMOVE)/$(NI_FFMPEG)
$(TOUCH) $(TOUCH)

33
make/target-ffmpeg.mk

@ -13,13 +13,7 @@ $(DL_DIR)/$(FFMPEG_SOURCE):
FFMPEG_UNPATCHED := no FFMPEG_UNPATCHED := no
# ----------------------------------------------------------------------------- FFMPEG_CONF_OPTS = \
FFMPEG_DEPS = openssl freetype rtmpdump libbluray libass libxml2 alsa-lib
# -----------------------------------------------------------------------------
FFMPEG_CONFIGURE_GENERIC = \
--prefix=$(prefix) \ --prefix=$(prefix) \
--cross-prefix=$(TARGET_CROSS) \ --cross-prefix=$(TARGET_CROSS) \
--datadir=$(REMOVE_datadir) \ --datadir=$(REMOVE_datadir) \
@ -327,34 +321,29 @@ FFMPEG_CONFIGURE_GENERIC = \
--arch=$(TARGET_ARCH) \ --arch=$(TARGET_ARCH) \
--extra-ldflags="$(TARGET_LDFLAGS)" --extra-ldflags="$(TARGET_LDFLAGS)"
# -----------------------------------------------------------------------------
ifeq ($(TARGET_ARCH),arm) ifeq ($(TARGET_ARCH),arm)
FFMPEG_CONFIGURE_PLATFORM = \ FFMPEG_CONF_OPTS += \
--cpu=cortex-a15 \ --cpu=cortex-a15 \
--extra-cflags="-Wno-deprecated-declarations -I$(TARGET_includedir) -mfpu=neon-vfpv4 -mfloat-abi=hard" --extra-cflags="-Wno-deprecated-declarations -I$(TARGET_includedir) -mfpu=neon-vfpv4 -mfloat-abi=hard"
else ifeq ($(TARGET_ARCH),mips) else ifeq ($(TARGET_ARCH),mips)
FFMPEG_CONFIGURE_PLATFORM = \ FFMPEG_CONF_OPTS += \
--cpu=generic \ --cpu=generic \
--extra-cflags="-Wno-deprecated-declarations -I$(TARGET_includedir)" --extra-cflags="-Wno-deprecated-declarations -I$(TARGET_includedir)"
endif endif
# ----------------------------------------------------------------------------- FFMPEG_DEPS = openssl freetype rtmpdump libbluray libass libxml2 alsa-lib
ffmpeg: $(FFMPEG_DEPS) $(DL_DIR)/$(FFMPEG_SOURCE) | $(TARGET_DIR) ffmpeg: $(FFMPEG_DEPS) $(DL_DIR)/$(FFMPEG_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(FFMPEG_DIR) $(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(FFMPEG_SOURCE) $(UNTAR)/$(PKG_SOURCE)
ifneq ($(FFMPEG_UNPATCHED),yes) ifneq ($($(PKG)_UNPATCHED),yes)
$(CHDIR)/$(FFMPEG_DIR); \ $(CHDIR)/$(PKG_DIR); \
$(APPLY_PATCHES) $(APPLY_PATCHES)
endif endif
$(CHDIR)/$(FFMPEG_DIR); \ $(CHDIR)/$(PKG_DIR); \
./configure \ ./configure $($(PKG)_CONF_OPTS); \
$(FFMPEG_CONFIGURE_GENERIC) \
$(FFMPEG_CONFIGURE_PLATFORM) \
; \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR) $(MAKE) install DESTDIR=$(TARGET_DIR)
$(REMOVE)/$(FFMPEG_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)

45
make/target-libs-static.mk

@ -10,39 +10,40 @@ endif
libs-static: $(LIBS-STATIC) | $(TARGET_DIR) libs-static: $(LIBS-STATIC) | $(TARGET_DIR)
$(INSTALL_COPY) $(STATIC_DIR)/. $(TARGET_DIR)/ $(INSTALL_COPY) $(STATIC_DIR)/. $(TARGET_DIR)/
$(REWRITE_LIBTOOL_LA) $(REWRITE_LIBTOOL)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
CORTEX-STRINGS_VER = 48fd30c CORTEX_STRINGS_VER = 48fd30c
CORTEX-STRINGS_DIR = cortex-strings-$(CORTEX-STRINGS_VER) CORTEX_STRINGS_DIR = cortex-strings-$(CORTEX_STRINGS_VER)
CORTEX-STRINGS_SOURCE = cortex-strings-$(CORTEX-STRINGS_VER).tar.bz2 CORTEX_STRINGS_SOURCE = cortex-strings-$(CORTEX_STRINGS_VER).tar.bz2
CORTEX-STRINGS_SITE = http://git.linaro.org/git-ro/toolchain/cortex-strings.git CORTEX_STRINGS_SITE = http://git.linaro.org/git-ro/toolchain/cortex-strings.git
$(DL_DIR)/$(CORTEX-STRINGS_SOURCE): $(DL_DIR)/$(CORTEX_STRINGS_SOURCE):
$(GET-GIT-ARCHIVE) $(CORTEX-STRINGS_SITE) $(CORTEX-STRINGS_VER) $(@F) $(DL_DIR) $(GET-GIT-ARCHIVE) $(CORTEX_STRINGS_SITE) $(CORTEX_STRINGS_VER) $(@F) $(DL_DIR)
CORTEX-STRINGS_CONF = $(if $(filter $(BOXSERIES),hd5x hd6x vusolo4k vuduo4k vuultimo4k vuzero4k vuuno4k vuuno4kse),--with-neon,--without-neon) CORTEX_STRINGS_CONF_ENV = \
cortex-strings: $(STATIC_libdir)/libcortex-strings.la
$(STATIC_libdir)/libcortex-strings.la: $(DL_DIR)/$(CORTEX-STRINGS_SOURCE) | $(STATIC_DIR)
$(REMOVE)/$(CORTEX-STRINGS_DIR)
$(UNTAR)/$(CORTEX-STRINGS_SOURCE)
$(CHDIR)/$(CORTEX-STRINGS_DIR); \
./autogen.sh; \
CFLAGS="-pipe -O2 $(TARGET_DEBUGGING) $(CXX11_ABI) -I$(TARGET_includedir)" \ CFLAGS="-pipe -O2 $(TARGET_DEBUGGING) $(CXX11_ABI) -I$(TARGET_includedir)" \
CPPFLAGS="-pipe -O2 $(TARGET_DEBUGGING) $(CXX11_ABI) -I$(TARGET_includedir)" \ CPPFLAGS="-pipe -O2 $(TARGET_DEBUGGING) $(CXX11_ABI) -I$(TARGET_includedir)" \
CXXFLAGS="-pipe -O2 $(TARGET_DEBUGGING) $(CXX11_ABI) -I$(TARGET_includedir)" \ CXXFLAGS="-pipe -O2 $(TARGET_DEBUGGING) $(CXX11_ABI) -I$(TARGET_includedir)" \
LDFLAGS="-Wl,-O1 -L$(TARGET_libdir)" \ LDFLAGS="-Wl,-O1 -L$(TARGET_libdir)"
./configure $(CONFIGURE_OPTS) \
--prefix=$(prefix) \ CORTEX_STRINGS_CONF_OPTS = \
--disable-shared \ $(TARGET_CONFIGURE_OPTS) \
$(if $(filter $(BOXSERIES),hd5x hd6x vusolo4k vuduo4k vuultimo4k vuzero4k vuuno4k vuuno4kse),--with-neon,--without-neon) \
--enable-static \ --enable-static \
$(CORTEX-STRINGS_CONF) \ --disable-shared
; \
cortex-strings: $(STATIC_libdir)/libcortex-strings.la
$(STATIC_libdir)/libcortex-strings.la: $(DL_DIR)/$(CORTEX_STRINGS_SOURCE) | $(STATIC_DIR)
$(REMOVE)/$(CORTEX_STRINGS_DIR)
$(UNTAR)/$(CORTEX_STRINGS_SOURCE)
$(CHDIR)/$(CORTEX_STRINGS_DIR); \
./autogen.sh; \
$(CORTEX_STRINGS_CONF_ENV) ./configure $(CORTEX_STRINGS_CONF_OPTS); \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(STATIC_DIR) $(MAKE) install DESTDIR=$(STATIC_DIR)
$(REMOVE)/$(CORTEX-STRINGS_DIR) $(REMOVE)/$(CORTEX_STRINGS_DIR)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------

156
make/target-libs-unused.mk

@ -11,49 +11,23 @@ LIBID3TAG_SITE = https://sourceforge.net/projects/mad/files/libid3tag/$(LIBID3
$(DL_DIR)/$(LIBID3TAG_SOURCE): $(DL_DIR)/$(LIBID3TAG_SOURCE):
$(DOWNLOAD) $(LIBID3TAG_SITE)/$(LIBID3TAG_SOURCE) $(DOWNLOAD) $(LIBID3TAG_SITE)/$(LIBID3TAG_SOURCE)
LIBID3TAG_PATCH = libid3tag-pc.patch
LIBID3TAG_DEPS = zlib LIBID3TAG_DEPS = zlib
libid3tag: $(LIBID3TAG_DEPS) $(DL_DIR)/$(LIBID3TAG_SOURCE) | $(TARGET_DIR) LIBID3TAG_AUTORECONF = YES
$(REMOVE)/$(LIBID3TAG_DIR)
$(UNTAR)/$(LIBID3TAG_SOURCE)
$(CHDIR)/$(LIBID3TAG_DIR); \
$(call apply_patches,$(LIBID3TAG_PATCH)); \
autoreconf -fi; \
$(CONFIGURE) \
--prefix=$(prefix) \
--enable-shared=yes \
; \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(REWRITE_LIBTOOL_LA)
$(REMOVE)/$(LIBID3TAG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
BZIP2_VER = 1.0.8
BZIP2_DIR = bzip2-$(BZIP2_VER)
BZIP2_SOURCE = bzip2-$(BZIP2_VER).tar.gz
BZIP2_SITE = https://sourceware.org/pub/bzip2
$(DL_DIR)/$(BZIP2_SOURCE):
$(DOWNLOAD) $(BZIP2_SITE)/$(BZIP2_SOURCE)
BZIP2_PATCH = bzip2.patch LIBID3TAG_CONF_OPTS = \
--enable-shared=yes
bzip2: $(DL_DIR)/$(BZIP2_SOURCE) | $(TARGET_DIR) libid3tag: $(LIBID3TAG_DEPS) $(DL_DIR)/$(LIBID3TAG_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(BZIP2_DIR) $(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(BZIP2_SOURCE) $(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(BZIP2_DIR); \ $(CHDIR)/$(PKG_DIR); \
$(call apply_patches,$(BZIP2_PATCH)); \ $(APPLY_PATCHES); \
mv Makefile-libbz2_so Makefile; \ $(CONFIGURE); \
$(MAKE_ENV) \
$(MAKE); \ $(MAKE); \
$(MAKE) install PREFIX=$(TARGET_DIR) $(MAKE) install DESTDIR=$(TARGET_DIR)
rm -f $(TARGET_bindir)/bzip2 $(REWRITE_LIBTOOL)
$(REMOVE)/$(BZIP2_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -68,22 +42,23 @@ $(DL_DIR)/$(FONTCONFIG_SOURCE):
FONTCONFIG_DEPS = freetype expat FONTCONFIG_DEPS = freetype expat
fontconfig: $(FONTCONFIG_DEPS) $(DL_DIR)/$(FONTCONFIG_SOURCE) | $(TARGET_DIR) FONTCONFIG_CONF_OPTS = \
$(REMOVE)/$(FONTCONFIG_DIR)
$(UNTAR)/$(FONTCONFIG_SOURCE)
$(CHDIR)/$(FONTCONFIG_DIR); \
$(CONFIGURE) \
--prefix=$(prefix) \
--with-freetype-config=$(HOST_DIR)/bin/freetype-config \ --with-freetype-config=$(HOST_DIR)/bin/freetype-config \
--with-expat-includes=$(TARGET_includedir) \ --with-expat-includes=$(TARGET_includedir) \
--with-expat-lib=$(TARGET_libdir) \ --with-expat-lib=$(TARGET_libdir) \
--sysconfdir=/etc \ --disable-docs
--disable-docs \
; \ fontconfig: $(FONTCONFIG_DEPS) $(DL_DIR)/$(FONTCONFIG_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(APPLY_PATCHES); \
$(CONFIGURE); \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR) $(MAKE) install DESTDIR=$(TARGET_DIR)
$(REWRITE_LIBTOOL_LA) $(REWRITE_CONFIG) $(HOST_DIR)/bin/freetype-config
$(REMOVE)/$(FONTCONFIG_DIR) $(REWRITE_LIBTOOL)
$(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -96,28 +71,24 @@ PIXMAN_SITE = https://www.cairographics.org/releases
$(DL_DIR)/$(PIXMAN_SOURCE): $(DL_DIR)/$(PIXMAN_SOURCE):
$(DOWNLOAD) $(PIXMAN_SITE)/$(PIXMAN_SOURCE) $(DOWNLOAD) $(PIXMAN_SITE)/$(PIXMAN_SOURCE)
PIXMAN_PATCH = pixman-0001-ARM-qemu-related-workarounds-in-cpu-features-detecti.patch
PIXMAN_PATCH += pixman-asm_include.patch
PIXMAN_PATCH += pixman-0001-test-utils-Check-for-FE_INVALID-definition-before-us.patch
PIXMAN_DEPS = zlib libpng PIXMAN_DEPS = zlib libpng
pixman: $(PIXMAN_DEPS) $(DL_DIR)/$(PIXMAN_SOURCE) | $(TARGET_DIR) PIXMAN_CONF_OPTS = \
$(REMOVE)/$(PIXMAN_DIR)
$(UNTAR)/$(PIXMAN_SOURCE)
$(CHDIR)/$(PIXMAN_DIR); \
$(call apply_patches,$(PIXMAN_PATCH)); \
$(CONFIGURE) \
--prefix=$(prefix) \
--disable-gtk \ --disable-gtk \
--disable-arm-simd \ --disable-arm-simd \
--disable-loongson-mmi \ --disable-loongson-mmi \
--disable-docs \ --disable-docs
; \
pixman: $(PIXMAN_DEPS) $(DL_DIR)/$(PIXMAN_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(APPLY_PATCHES); \
$(CONFIGURE); \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR) $(MAKE) install DESTDIR=$(TARGET_DIR)
$(REWRITE_LIBTOOL_LA) $(REWRITE_LIBTOOL)
$(REMOVE)/$(PIXMAN_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -130,27 +101,27 @@ CAIRO_SITE = https://www.cairographics.org/releases
$(DL_DIR)/$(CAIRO_SOURCE): $(DL_DIR)/$(CAIRO_SOURCE):
$(DOWNLOAD) $(CAIRO_SITE)/$(CAIRO_SOURCE) $(DOWNLOAD) $(CAIRO_SITE)/$(CAIRO_SOURCE)
CAIRO_PATCH = cairo-get_bitmap_surface.diff
CAIRO_DEPS = fontconfig glib2 libpng pixman zlib CAIRO_DEPS = fontconfig glib2 libpng pixman zlib
cairo: $(CAIRO_DEPS) $(DL_DIR)/$(CAIRO_SOURCE) | $(TARGET_DIR) CAIRO_CONF_ENV = \
$(REMOVE)/$(CAIRO_DIR) ax_cv_c_float_words_bigendian="no"
$(UNTAR)/$(CAIRO_SOURCE)
$(CHDIR)/$(CAIRO_DIR); \ CAIRO_CONF_OPTS = \
$(call apply_patches,$(CAIRO_PATCH)); \ --with-html-dir=$(REMOVE_htmldir) \
$(MAKE_ENV) \
ax_cv_c_float_words_bigendian="no" \
./configure $(CONFIGURE_OPTS) \
--prefix=$(prefix) \
--with-x=no \ --with-x=no \
--disable-xlib \ --disable-xlib \
--disable-xcb \ --disable-xcb \
--disable-egl \ --disable-egl \
--disable-glesv2 \ --disable-glesv2 \
--disable-gl \ --disable-gl \
--enable-tee \ --enable-tee
; \
cairo: $(CAIRO_DEPS) $(DL_DIR)/$(CAIRO_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(APPLY_PATCHES); \
$(CONFIGURE); \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR) $(MAKE) install DESTDIR=$(TARGET_DIR)
rm -rf $(TARGET_bindir)/cairo-sphinx rm -rf $(TARGET_bindir)/cairo-sphinx
@ -158,8 +129,8 @@ cairo: $(CAIRO_DEPS) $(DL_DIR)/$(CAIRO_SOURCE) | $(TARGET_DIR)
rm -rf $(TARGET_libdir)/cairo/cairo-sphinx* rm -rf $(TARGET_libdir)/cairo/cairo-sphinx*
rm -rf $(TARGET_libdir)/cairo/.debug/cairo-fdr* rm -rf $(TARGET_libdir)/cairo/.debug/cairo-fdr*
rm -rf $(TARGET_libdir)/cairo/.debug/cairo-sphinx* rm -rf $(TARGET_libdir)/cairo/.debug/cairo-sphinx*
$(REWRITE_LIBTOOL_LA) $(REWRITE_LIBTOOL)
$(REMOVE)/$(CAIRO_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -172,27 +143,26 @@ HARFBUZZ_SITE = https://www.freedesktop.org/software/harfbuzz/release
$(DL_DIR)/$(HARFBUZZ_SOURCE): $(DL_DIR)/$(HARFBUZZ_SOURCE):
$(DOWNLOAD) $(HARFBUZZ_SITE)/$(HARFBUZZ_SOURCE) $(DOWNLOAD) $(HARFBUZZ_SITE)/$(HARFBUZZ_SOURCE)
HARFBUZZ_PATCH = harfbuzz-disable-docs.patch
HARFBUZZ_DEPS = fontconfig glib2 cairo freetype HARFBUZZ_DEPS = fontconfig glib2 cairo freetype
harfbuzz: $(HARFBUZZ_DEPS) $(DL_DIR)/$(HARFBUZZ_SOURCE) | $(TARGET_DIR) HARFBUZZ_AUTORECONF = YES
$(REMOVE)/$(HARFBUZZ_DIR)
$(UNTAR)/$(HARFBUZZ_SOURCE) HARFBUZZ_CONF_OPTS = \
$(CHDIR)/$(HARFBUZZ_DIR); \
$(call apply_patches,$(HARFBUZZ_PATCH)); \
autoreconf -fi; \
$(CONFIGURE) \
--prefix=$(prefix) \
--with-cairo \ --with-cairo \
--with-fontconfig \ --with-fontconfig \
--with-freetype \ --with-freetype \
--with-glib \ --with-glib \
--without-graphite2 \ --without-graphite2 \
--without-icu \ --without-icu
; \
harfbuzz: $(HARFBUZZ_DEPS) $(DL_DIR)/$(HARFBUZZ_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(APPLY_PATCHES); \
$(CONFIGURE); \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR) $(MAKE) install DESTDIR=$(TARGET_DIR)
$(REWRITE_LIBTOOL_LA) $(REWRITE_LIBTOOL)
$(REMOVE)/$(HARFBUZZ_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)

1126
make/target-libs.mk

File diff suppressed because it is too large

131
make/target-lua.mk

@ -12,22 +12,16 @@ LUA_SITE = https://www.lua.org
$(DL_DIR)/$(LUA_SOURCE): $(DL_DIR)/$(LUA_SOURCE):
$(DOWNLOAD) $(LUA_SITE)/ftp/$(LUA_SOURCE) $(DOWNLOAD) $(LUA_SITE)/ftp/$(LUA_SOURCE)
LUA_PATCH = lua-01-fix-LUA_ROOT.patch
LUA_PATCH += lua-01-remove-readline.patch
LUA_PATCH += lua-02-shared-libs-for-lua.patch
LUA_PATCH += lua-03-lua-pc.patch
LUA_PATCH += lua-04-crashfix.diff
LUA_DEPS = ncurses LUA_DEPS = ncurses
lua: $(LUA_DEPS) $(DL_DIR)/$(LUA_SOURCE) | $(TARGET_DIR) lua: $(LUA_DEPS) $(DL_DIR)/$(LUA_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(LUA_DIR) $(REMOVE)/$(LUA_DIR)
$(UNTAR)/$(LUA_SOURCE) $(UNTAR)/$(LUA_SOURCE)
$(CHDIR)/$(LUA_DIR); \ $(CHDIR)/$(LUA_DIR); \
$(call apply_patches,$(LUA_PATCH)); \ $(APPLY_PATCHES); \
$(MAKE) linux \ $(MAKE) linux \
PKG_VERSION=$(LUA_VER) \ PKG_VERSION=$(LUA_VER) \
$(MAKE_OPTS) \ $(TARGET_MAKE_OPTS) \
AR="$(TARGET_AR) rcu" \ AR="$(TARGET_AR) rcu" \
LDFLAGS="$(TARGET_LDFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \
; \ ; \
@ -49,45 +43,45 @@ $(DL_DIR)/$(LUAEXPAT_SOURCE):
LUAEXPAT_DEPS = expat lua LUAEXPAT_DEPS = expat lua
LUAEXPAT_MAKE_ENV = \
$(TARGET_CONFIGURE_ENV)
LUAEXPAT_MAKE_OPTS = \
PREFIX=$(TARGET_prefix) \
LUA_SYS_VER=$(LUA_ABIVER)
luaexpat: $(LUAEXPAT_DEPS) $(DL_DIR)/$(LUAEXPAT_SOURCE) | $(TARGET_DIR) luaexpat: $(LUAEXPAT_DEPS) $(DL_DIR)/$(LUAEXPAT_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(LUAEXPAT_DIR) $(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(LUAEXPAT_SOURCE) $(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(LUAEXPAT_DIR); \ $(CHDIR)/$(PKG_DIR); \
$(SED) 's|^EXPAT_INC=.*|EXPAT_INC= $(TARGET_includedir)|' makefile; \ $(SED) 's|^EXPAT_INC=.*|EXPAT_INC= $(TARGET_includedir)|' makefile; \
$(SED) 's|^CFLAGS =.*|& -L$(TARGET_libdir)|' makefile; \ $(SED) 's|^CFLAGS =.*|& -L$(TARGET_libdir)|' makefile; \
$(SED) 's|^CC =.*|CC = $(TARGET_CC)|' makefile; \ $(SED) 's|^CC =.*|CC = $(TARGET_CC)|' makefile; \
$(MAKE_ENV) \ $($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS); \
$(MAKE) \ $($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS) install
PREFIX=$(TARGET_prefix) \ $(REMOVE)/$(PKG_DIR)
LUA_SYS_VER=$(LUA_ABIVER); \
$(MAKE) install \
PREFIX=$(TARGET_prefix) \
LUA_SYS_VER=$(LUA_ABIVER)
$(REMOVE)/$(LUAEXPAT_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
LUA-FEEDPARSER_VER = 0.71 LUA_FEEDPARSER_VER = 0.71
LUA-FEEDPARSER_DIR = lua-feedparser-$(LUA-FEEDPARSER_VER) LUA_FEEDPARSER_DIR = lua-feedparser-$(LUA_FEEDPARSER_VER)
LUA-FEEDPARSER_SOURCE = lua-feedparser-$(LUA-FEEDPARSER_VER).tar.gz LUA_FEEDPARSER_SOURCE = lua-feedparser-$(LUA_FEEDPARSER_VER).tar.gz
LUA-FEEDPARSER_SITE = https://github.com/slact/lua-feedparser/archive LUA_FEEDPARSER_SITE = https://github.com/slact/lua-feedparser/archive
$(DL_DIR)/$(LUA-FEEDPARSER_SOURCE):
$(DOWNLOAD) $(LUA-FEEDPARSER_SITE)/$(LUA-FEEDPARSER_VER).tar.gz -O $(@)
LUA-FEEDPARSER_PATCH = lua-feedparser.patch $(DL_DIR)/$(LUA_FEEDPARSER_SOURCE):
$(DOWNLOAD) $(LUA_FEEDPARSER_SITE)/$(LUA_FEEDPARSER_VER).tar.gz -O $(@)
LUA-DEEDPARSER_DEPS = luaexpat LUA_FEEDPARSER_DEPS = luaexpat
lua-feedparser: $(LUA-DEEDPARSER_DEPS) $(DL_DIR)/$(LUA-FEEDPARSER_SOURCE) | $(TARGET_DIR) lua-feedparser: $(LUA-DEEDPARSER_DEPS) $(DL_DIR)/$(LUA_FEEDPARSER_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(LUA-FEEDPARSER_DIR) $(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(LUA-FEEDPARSER_SOURCE) $(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(LUA-FEEDPARSER_DIR); \ $(CHDIR)/$(PKG_DIR); \
$(SED) 's|^PREFIX =|PREFIX ?=|' Makefile; \ $(SED) 's|^PREFIX =|PREFIX ?=|' Makefile; \
$(call apply_patches,$(LUA-FEEDPARSER_PATCH)); \ $(APPLY_PATCHES); \
$(MAKE) install PREFIX=$(TARGET_prefix) $(MAKE) install PREFIX=$(TARGET_prefix)
$(REMOVE)/$(LUA-FEEDPARSER_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -100,9 +94,9 @@ $(DL_DIR)/$(LUAJSON_SOURCE):
luajson: $(DL_DIR)/$(LUAJSON_SOURCE) | $(TARGET_DIR) luajson: $(DL_DIR)/$(LUAJSON_SOURCE) | $(TARGET_DIR)
$(CD) $(DL_DIR); \ $(CD) $(DL_DIR); \
curl --remote-name --time-cond $(LUAJSON_SOURCE) $(LUAJSON_SITE)/$(LUAJSON_SOURCE) || true curl --remote-name --time-cond $(PKG_SOURCE) $(PKG_SITE)/$(PKG_SOURCE) || true
$(INSTALL_DATA) -D $(DL_DIR)/$(LUAJSON_SOURCE) $(TARGET_datadir)/lua/$(LUA_ABIVER) $(INSTALL_DATA) -D $(DL_DIR)/$(PKG_SOURCE) $(TARGET_datadir)/lua/$(LUA_ABIVER)
ln -sf $(LUAJSON_SOURCE) $(TARGET_datadir)/lua/$(LUA_ABIVER)/json.lua ln -sf $(PKG_SOURCE) $(TARGET_datadir)/lua/$(LUA_ABIVER)/json.lua
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -114,22 +108,23 @@ LUACURL_SITE = https://github.com/lua-curl/$(LUACURL_SOURCE)
LUACURL_DEPS = libcurl lua LUACURL_DEPS = libcurl lua
luacurl: $(LUACURL_DEPS) | $(TARGET_DIR) LUACURL_MAKE_ENV = \
echo $(TARGET_libdir) $(TARGET_CONFIGURE_ENV)
echo $(TARGET_includedir)
echo $(TARGET_datadir) LUACURL_MAKE_OPTS = \
$(REMOVE)/$(LUACURL_DIR)
$(GET-GIT-SOURCE) $(LUACURL_SITE) $(DL_DIR)/$(LUACURL_SOURCE)
$(CPDIR)/$(LUACURL_SOURCE)
$(CHDIR)/$(LUACURL_DIR); \
$(MAKE_ENV) \
$(MAKE) \
LIBDIR=$(TARGET_libdir) \ LIBDIR=$(TARGET_libdir) \
LUA_INC=$(TARGET_includedir); \ LUA_INC=$(TARGET_includedir) \
$(MAKE) install DESTDIR=$(TARGET_DIR) \
LUA_CMOD=$(libdir)/lua/$(LUA_ABIVER) \ LUA_CMOD=$(libdir)/lua/$(LUA_ABIVER) \
LUA_LMOD=$(datadir)/lua/$(LUA_ABIVER) LUA_LMOD=$(datadir)/lua/$(LUA_ABIVER)
$(REMOVE)/$(LUACURL_DIR)
luacurl: $(LUACURL_DEPS) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(GET-GIT-SOURCE) $(PKG_SITE) $(DL_DIR)/$(PKG_SOURCE)
$(CPDIR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS); \
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS) install DESTDIR=$(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -142,10 +137,20 @@ LUAPOSIX_SITE = https://github.com/luaposix/luaposix/archive
$(DL_DIR)/$(LUAPOSIX_SOURCE): $(DL_DIR)/$(LUAPOSIX_SOURCE):
$(DOWNLOAD) $(LUAPOSIX_SITE)/v$(LUAPOSIX_VER).tar.gz -O $(@) $(DOWNLOAD) $(LUAPOSIX_SITE)/v$(LUAPOSIX_VER).tar.gz -O $(@)
LUAPOSIX_PATCH = luaposix-fix-docdir-build.patch
LUAPOSIX_DEPS = $(HOST_LUA) lua luaexpat LUAPOSIX_DEPS = $(HOST_LUA) lua luaexpat
LUAPOSIX_AUTORECONF = YES
LUAPOSIX_CONF_ENV = \
LUA=$(HOST_LUA)
LUAPOSIX_CONF_OPTS = \
--libdir=$(TARGET_libdir)/lua/$(LUA_ABIVER) \
--datadir=$(TARGET_datadir)/lua/$(LUA_ABIVER) \
--mandir=$(TARGET_DIR)$(REMOVE_mandir) \
--docdir=$(TARGET_DIR)$(REMOVE_docdir) \
--enable-silent-rules
GNULIB_VER = 20140202 GNULIB_VER = 20140202
GNULIB_SOURCE = gnulib-$(GNULIB_VER)-stable.tar.gz GNULIB_SOURCE = gnulib-$(GNULIB_VER)-stable.tar.gz
GNULIB_SITE = http://erislabs.net/ianb/projects/gnulib GNULIB_SITE = http://erislabs.net/ianb/projects/gnulib
@ -161,25 +166,15 @@ $(DL_DIR)/$(SLINGSHOT_SOURCE):
$(DOWNLOAD) $(SLINGSHOT_SITE)/v$(SLINGSHOT_VER).tar.gz -O $(@) $(DOWNLOAD) $(SLINGSHOT_SITE)/v$(SLINGSHOT_VER).tar.gz -O $(@)
luaposix: $(LUAPOSIX_DEPS) $(DL_DIR)/$(SLINGSHOT_SOURCE) $(DL_DIR)/$(GNULIB_SOURCE) $(DL_DIR)/$(LUAPOSIX_SOURCE) | $(TARGET_DIR) luaposix: $(LUAPOSIX_DEPS) $(DL_DIR)/$(SLINGSHOT_SOURCE) $(DL_DIR)/$(GNULIB_SOURCE) $(DL_DIR)/$(LUAPOSIX_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(LUAPOSIX_DIR) $(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(LUAPOSIX_SOURCE) $(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(LUAPOSIX_DIR); \ $(CHDIR)/$(PKG_DIR); \
tar -C gnulib --strip=1 -xf $(DL_DIR)/$(GNULIB_SOURCE); \ tar -C gnulib --strip=1 -xf $(DL_DIR)/$(GNULIB_SOURCE); \
tar -C slingshot --strip=1 -xf $(DL_DIR)/$(SLINGSHOT_SOURCE); \ tar -C slingshot --strip=1 -xf $(DL_DIR)/$(SLINGSHOT_SOURCE); \
$(call apply_patches,$(LUAPOSIX_PATCH)); \ $(APPLY_PATCHES); \
export LUA=$(HOST_LUA); \
./bootstrap; \ ./bootstrap; \
autoreconf -fi; \ $(CONFIGURE); \
$(CONFIGURE) \
--prefix=$(prefix) \
--exec-prefix=$(exec_prefix) \
--libdir=$(TARGET_libdir)/lua/$(LUA_ABIVER) \
--datarootdir=$(TARGET_datadir)/lua/$(LUA_ABIVER) \
--mandir=$(TARGET_DIR)$(REMOVE_mandir) \
--docdir=$(TARGET_DIR)$(REMOVE_docdir) \
--enable-silent-rules \
; \
$(MAKE); \ $(MAKE); \
$(MAKE) install $(MAKE) install
$(REMOVE)/$(LUAPOSIX_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)

185
make/target-neutrino-plugins.mk

@ -17,39 +17,40 @@ endif
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
NEUTRINO-PLUGINS_OBJ = $(NI-NEUTRINO-PLUGINS)-obj NEUTRINO_PLUGINS_OBJ = $(NI_NEUTRINO_PLUGINS)-obj
NEUTRINO-PLUGINS_BUILD_DIR = $(BUILD_DIR)/$(NEUTRINO-PLUGINS_OBJ) NEUTRINO_PLUGINS_BUILD_DIR = $(BUILD_DIR)/$(NEUTRINO_PLUGINS_OBJ)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
NEUTRINO-PLUGINS_DEPS = ffmpeg NEUTRINO_PLUGINS_DEPS = ffmpeg
NEUTRINO-PLUGINS_DEPS += libcurl NEUTRINO_PLUGINS_DEPS += libcurl
NEUTRINO-PLUGINS_DEPS += libpng NEUTRINO_PLUGINS_DEPS += libpng
NEUTRINO-PLUGINS_DEPS += libjpeg-turbo NEUTRINO_PLUGINS_DEPS += libjpeg-turbo
NEUTRINO-PLUGINS_DEPS += giflib NEUTRINO_PLUGINS_DEPS += giflib
NEUTRINO-PLUGINS_DEPS += freetype NEUTRINO_PLUGINS_DEPS += freetype
NEUTRINO-PLUGINS_DEPS += luaexpat NEUTRINO_PLUGINS_DEPS += luaexpat
NEUTRINO-PLUGINS_DEPS += luajson NEUTRINO_PLUGINS_DEPS += luajson
NEUTRINO-PLUGINS_DEPS += luacurl NEUTRINO_PLUGINS_DEPS += luacurl
NEUTRINO-PLUGINS_DEPS += luaposix NEUTRINO_PLUGINS_DEPS += luaposix
NEUTRINO-PLUGINS_DEPS += lua-feedparser NEUTRINO_PLUGINS_DEPS += lua-feedparser
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
NEUTRINO-PLUGINS_CONF_ENV = \ NEUTRINO_PLUGINS_CONF_ENV = \
$(MAKE_ENV) $(TARGET_CONFIGURE_ENV)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
NEUTRINO-PLUGINS_CONF_OPTS = \ NEUTRINO_PLUGINS_CONF_OPTS = \
--host=$(TARGET) \
--build=$(BUILD) \ --build=$(BUILD) \
--host=$(TARGET) \
--target=$(TARGET) \
--prefix=$(prefix) \ --prefix=$(prefix) \
--sysconfdir=$(sysconfdir) \ --sysconfdir=$(sysconfdir) \
--enable-maintainer-mode \ --enable-maintainer-mode \
--enable-silent-rules \ --enable-silent-rules \
\ \
--with-neutrino-source=$(SOURCE_DIR)/$(NI-NEUTRINO) \ --with-neutrino-source=$(SOURCE_DIR)/$(NI_NEUTRINO) \
--with-neutrino-build=$(NEUTRINO_BUILD_DIR) \ --with-neutrino-build=$(NEUTRINO_BUILD_DIR) \
\ \
--with-target=cdk \ --with-target=cdk \
@ -57,12 +58,12 @@ NEUTRINO-PLUGINS_CONF_OPTS = \
--with-boxtype=$(BOXTYPE) --with-boxtype=$(BOXTYPE)
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1 hd2)) ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1 hd2))
NEUTRINO-PLUGINS_CONF_OPTS += --with-boxmodel=$(BOXSERIES) NEUTRINO_PLUGINS_CONF_OPTS += --with-boxmodel=$(BOXSERIES)
else else
NEUTRINO-PLUGINS_CONF_OPTS += --with-boxmodel=$(BOXMODEL) NEUTRINO_PLUGINS_CONF_OPTS += --with-boxmodel=$(BOXMODEL)
endif endif
NEUTRINO-PLUGINS_CONF_OPTS += \ NEUTRINO_PLUGINS_CONF_OPTS += \
--disable-logoupdater \ --disable-logoupdater \
--disable-logoview \ --disable-logoview \
--disable-mountpointmanagement \ --disable-mountpointmanagement \
@ -70,11 +71,11 @@ NEUTRINO-PLUGINS_CONF_OPTS += \
ifeq ($(BOXTYPE),coolstream) ifeq ($(BOXTYPE),coolstream)
ifeq ($(BOXSERIES),hd1) ifeq ($(BOXSERIES),hd1)
NEUTRINO-PLUGINS_CONF_OPTS += \ NEUTRINO_PLUGINS_CONF_OPTS += \
--disable-spiegel_tv_doc \ --disable-spiegel_tv_doc \
--disable-tierwelt_tv --disable-tierwelt_tv
endif endif
NEUTRINO-PLUGINS_CONF_OPTS += \ NEUTRINO_PLUGINS_CONF_OPTS += \
--disable-showiframe \ --disable-showiframe \
--disable-stb_startup \ --disable-stb_startup \
--disable-imgbackup \ --disable-imgbackup \
@ -84,37 +85,37 @@ endif
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1 hd2)) ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1 hd2))
NEUTRINO-PLUGINS_BOXMODEL = $(BOXSERIES) NEUTRINO_PLUGINS_BOXMODEL = $(BOXSERIES)
else else
NEUTRINO-PLUGINS_BOXMODEL = $(BOXMODEL) NEUTRINO_PLUGINS_BOXMODEL = $(BOXMODEL)
endif endif
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
$(NEUTRINO-PLUGINS_BUILD_DIR)/config.status: $(NEUTRINO-PLUGINS_DEPS) $(NEUTRINO_PLUGINS_BUILD_DIR)/config.status: $(NEUTRINO_PLUGINS_DEPS)
test -d $(NEUTRINO-PLUGINS_BUILD_DIR) || mkdir -p $(NEUTRINO-PLUGINS_BUILD_DIR) test -d $(NEUTRINO_PLUGINS_BUILD_DIR) || mkdir -p $(NEUTRINO_PLUGINS_BUILD_DIR)
$(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS)/autogen.sh $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/autogen.sh
$(CD) $(NEUTRINO-PLUGINS_BUILD_DIR); \ $(CD) $(NEUTRINO_PLUGINS_BUILD_DIR); \
$(NEUTRINO-PLUGINS_CONF_ENV) \ $(NEUTRINO_PLUGINS_CONF_ENV) \
$(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS)/configure \ $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/configure \
$(NEUTRINO-PLUGINS_CONF_OPTS) $(NEUTRINO_PLUGINS_CONF_OPTS)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
NEUTRINO-PLUGINS_INIT-SCRIPTS_DEFAULTS = NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS =
NEUTRINO-PLUGINS_INIT-SCRIPTS_DEFAULTS += emmrd NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS += emmrd
NEUTRINO-PLUGINS_INIT-SCRIPTS_DEFAULTS += fritzcallmonitor NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS += fritzcallmonitor
NEUTRINO-PLUGINS_INIT-SCRIPTS_DEFAULTS += openvpn NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS += openvpn
NEUTRINO-PLUGINS_INIT-SCRIPTS_DEFAULTS += rcu_switcher NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS += rcu_switcher
#NEUTRINO-PLUGINS_INIT-SCRIPTS_DEFAULTS += stbup #NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS += stbup
NEUTRINO-PLUGINS_INIT-SCRIPTS_DEFAULTS += tuxcald NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS += tuxcald
NEUTRINO-PLUGINS_INIT-SCRIPTS_DEFAULTS += tuxmaild NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS += tuxmaild
NEUTRINO-PLUGINS_INIT-SCRIPTS = $(NEUTRINO-PLUGINS_INIT-SCRIPTS_DEFAULTS) NEUTRINO_PLUGINS_INIT_SCRIPTS = $(NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS)
NEUTRINO-PLUGINS_INIT-SCRIPTS += turnoff_power NEUTRINO_PLUGINS_INIT_SCRIPTS += turnoff_power
define NEUTRINO-PLUGINS_RUNLEVEL-LINKS_INSTALL define NEUTRINO_PLUGINS_RUNLEVEL_LINKS_INSTALL
for script in $(NEUTRINO-PLUGINS_INIT-SCRIPTS_DEFAULTS); do \ for script in $(NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS); do \
if [ -x $(TARGET_sysconfdir)/init.d/$$script ]; then \ if [ -x $(TARGET_sysconfdir)/init.d/$$script ]; then \
$(UPDATE-RC.D) $$script defaults 80 20; \ $(UPDATE-RC.D) $$script defaults 80 20; \
fi; \ fi; \
@ -124,8 +125,8 @@ define NEUTRINO-PLUGINS_RUNLEVEL-LINKS_INSTALL
fi fi
endef endef
define NEUTRINO-PLUGINS_RUNLEVEL-LINKS_UNINSTALL define NEUTRINO_PLUGINS_RUNLEVEL_LINKS_UNINSTALL
for link in $(NEUTRINO-PLUGINS_INIT-SCRIPTS); do \ for link in $(NEUTRINO_PLUGINS_INIT_SCRIPTS); do \
find $(TARGET_sysconfdir) -type l -name [SK]??$$link -print0 | \ find $(TARGET_sysconfdir) -type l -name [SK]??$$link -print0 | \
xargs --no-run-if-empty -0 rm -f; \ xargs --no-run-if-empty -0 rm -f; \
done done
@ -133,55 +134,55 @@ endef
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
neutrino-plugins: neutrino $(NEUTRINO-PLUGINS_BUILD_DIR)/config.status neutrino-plugins: neutrino $(NEUTRINO_PLUGINS_BUILD_DIR)/config.status
$(MAKE) -C $(NEUTRINO-PLUGINS_BUILD_DIR) $(MAKE) -C $(NEUTRINO_PLUGINS_BUILD_DIR)
$(MAKE) -C $(NEUTRINO-PLUGINS_BUILD_DIR) install DESTDIR=$(TARGET_DIR) $(MAKE) -C $(NEUTRINO_PLUGINS_BUILD_DIR) install DESTDIR=$(TARGET_DIR)
$(NEUTRINO-PLUGINS_RUNLEVEL-LINKS_INSTALL) $(NEUTRINO_PLUGINS_RUNLEVEL_LINKS_INSTALL)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
neutrino-plugins-uninstall: neutrino-plugins-uninstall:
-make -C $(NEUTRINO-PLUGINS_BUILD_DIR) uninstall DESTDIR=$(TARGET_DIR) -make -C $(NEUTRINO_PLUGINS_BUILD_DIR) uninstall DESTDIR=$(TARGET_DIR)
$(NEUTRINO-PLUGINS_RUNLEVEL-LINKS_UNINSTALL) $(NEUTRINO_PLUGINS_RUNLEVEL_LINKS_UNINSTALL)
neutrino-plugins-distclean: neutrino-plugins-distclean:
-make -C $(NEUTRINO-PLUGINS_BUILD_DIR) distclean -make -C $(NEUTRINO_PLUGINS_BUILD_DIR) distclean
neutrino-plugins-clean: neutrino-plugins-uninstall neutrino-plugins-distclean neutrino-plugins-clean: neutrino-plugins-uninstall neutrino-plugins-distclean
rm -f $(NEUTRINO-PLUGINS_BUILD_DIR)/config.status rm -f $(NEUTRINO_PLUGINS_BUILD_DIR)/config.status
rm -f $(DEPS_DIR)/neutrino-plugins rm -f $(DEPS_DIR)/neutrino-plugins
neutrino-plugins-clean-all: neutrino-plugins-clean neutrino-plugins-clean-all: neutrino-plugins-clean
rm -rf $(NEUTRINO-PLUGINS_BUILD_DIR) rm -rf $(NEUTRINO_PLUGINS_BUILD_DIR)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# To build single plugins from neutrino-plugins repository call # To build single plugins from neutrino-plugins repository call
# make neutrino-plugin-<subdir>; e.g. make neutrino-plugin-tuxwetter # make neutrino-plugin-<subdir>; e.g. make neutrino-plugin-tuxwetter
neutrino-plugin-%: $(NEUTRINO-PLUGINS_BUILD_DIR)/config.status neutrino-plugin-%: $(NEUTRINO_PLUGINS_BUILD_DIR)/config.status
$(MAKE) -C $(NEUTRINO-PLUGINS_BUILD_DIR)/$(subst neutrino-plugin-,,$(@)) $(MAKE) -C $(NEUTRINO_PLUGINS_BUILD_DIR)/$(subst neutrino-plugin-,,$(@))
$(MAKE) -C $(NEUTRINO-PLUGINS_BUILD_DIR)/$(subst neutrino-plugin-,,$(@)) install DESTDIR=$(TARGET_DIR) $(MAKE) -C $(NEUTRINO_PLUGINS_BUILD_DIR)/$(subst neutrino-plugin-,,$(@)) install DESTDIR=$(TARGET_DIR)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
channellogos: $(SOURCE_DIR)/$(NI-LOGO-STUFF) $(SHARE_ICONS) channellogos: $(SOURCE_DIR)/$(NI_LOGO_STUFF) $(SHARE_ICONS)
rm -rf $(SHARE_LOGOS) rm -rf $(SHARE_LOGOS)
mkdir -p $(SHARE_LOGOS) mkdir -p $(SHARE_LOGOS)
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI-LOGO-STUFF)/logos/* $(SHARE_LOGOS) $(INSTALL_DATA) $(SOURCE_DIR)/$(NI_LOGO_STUFF)/logos/* $(SHARE_LOGOS)
mkdir -p $(SHARE_LOGOS)/events mkdir -p $(SHARE_LOGOS)/events
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI-LOGO-STUFF)/logos-events/* $(SHARE_LOGOS)/events $(INSTALL_DATA) $(SOURCE_DIR)/$(NI_LOGO_STUFF)/logos-events/* $(SHARE_LOGOS)/events
$(CD) $(SOURCE_DIR)/$(NI-LOGO-STUFF)/logo-links; \ $(CD) $(SOURCE_DIR)/$(NI_LOGO_STUFF)/logo-links; \
./logo-linker.sh logo-links.db $(SHARE_LOGOS) ./logo-linker.sh logo-links.db $(SHARE_LOGOS)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
logo-addon: $(SOURCE_DIR)/$(NI-LOGO-STUFF) $(SHARE_PLUGINS) logo-addon: $(SOURCE_DIR)/$(NI_LOGO_STUFF) $(SHARE_PLUGINS)
$(INSTALL_EXEC) $(SOURCE_DIR)/$(NI-LOGO-STUFF)/logo-addon/*.sh $(SHARE_PLUGINS)/ $(INSTALL_EXEC) $(SOURCE_DIR)/$(NI_LOGO_STUFF)/logo-addon/*.sh $(SHARE_PLUGINS)/
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI-LOGO-STUFF)/logo-addon/*.cfg $(SHARE_PLUGINS)/ $(INSTALL_DATA) $(SOURCE_DIR)/$(NI_LOGO_STUFF)/logo-addon/*.cfg $(SHARE_PLUGINS)/
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI-LOGO-STUFF)/logo-addon/*.png $(SHARE_PLUGINS)/ $(INSTALL_DATA) $(SOURCE_DIR)/$(NI_LOGO_STUFF)/logo-addon/*.png $(SHARE_PLUGINS)/
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -193,22 +194,22 @@ doscam-webif-skin:
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
NEUTRINO-MEDIATHEK_VER = git NEUTRINO_MEDIATHEK_VER = git
NEUTRINO-MEDIATHEK_DIR = mediathek.$(NEUTRINO-MEDIATHEK_VER) NEUTRINO_MEDIATHEK_DIR = mediathek.$(NEUTRINO_MEDIATHEK_VER)
NEUTRINO-MEDIATHEK_SOURCE = mediathek.$(NEUTRINO-MEDIATHEK_VER) NEUTRINO_MEDIATHEK_SOURCE = mediathek.$(NEUTRINO_MEDIATHEK_VER)
NEUTRINO-MEDIATHEK_SITE = https://github.com/neutrino-mediathek NEUTRINO_MEDIATHEK_SITE = https://github.com/neutrino-mediathek
neutrino-mediathek: $(SHARE_PLUGINS) | $(TARGET_DIR) neutrino-mediathek: $(SHARE_PLUGINS) | $(TARGET_DIR)
$(REMOVE)/$(NEUTRINO-MEDIATHEK_DIR) $(REMOVE)/$(PKG_DIR)
$(GET-GIT-SOURCE) $(NEUTRINO-MEDIATHEK_SITE)/$(NEUTRINO-MEDIATHEK_SOURCE) $(DL_DIR)/$(NEUTRINO-MEDIATHEK_SOURCE) $(GET-GIT-SOURCE) $(PKG_SITE)/$(PKG_SOURCE) $(DL_DIR)/$(PKG_SOURCE)
$(CPDIR)/$(NEUTRINO-MEDIATHEK_SOURCE) $(CPDIR)/$(PKG_SOURCE)
$(CHDIR)/$(NEUTRINO-MEDIATHEK_DIR); \ $(CHDIR)/$(PKG_DIR); \
$(INSTALL_COPY) plugins/* $(SHARE_PLUGINS)/; \ $(INSTALL_COPY) plugins/* $(SHARE_PLUGINS)/; \
$(INSTALL_COPY) share/* $(TARGET_datadir) $(INSTALL_COPY) share/* $(TARGET_datadir)
$(REMOVE)/$(NEUTRINO-MEDIATHEK_DIR) $(REMOVE)/$(PKG_DIR)
# temporarily use beta-version from our board # temporarily use beta-version from our board
rm -rf $(SHARE_PLUGINS)/neutrino-mediathek* rm -rf $(SHARE_PLUGINS)/neutrino-mediathek*
$(INSTALL_COPY) $(SOURCE_DIR)/$(NI-NEUTRINO-PLUGINS)/scripts-lua/plugins/mediathek/* $(SHARE_PLUGINS)/ $(INSTALL_COPY) $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-lua/plugins/mediathek/* $(SHARE_PLUGINS)/
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -235,20 +236,9 @@ else ifeq ($(BOXMODEL),$(filter $(BOXMODEL),h7))
LINKS_PATCH += links-input-event2.patch LINKS_PATCH += links-input-event2.patch
endif endif
links: $(LINKS_DEPS) $(DL_DIR)/$(LINKS_SOURCE) $(SHARE_PLUGINS) | $(TARGET_DIR) LINKS_AUTORECONF = YES
$(REMOVE)/$(LINKS_DIR)
$(UNTAR)/$(LINKS_SOURCE) LINKS_CONF_OPTS = \
$(CHDIR)/$(LINKS_DIR)/intl; \
$(SED) 's|^T_SAVE_HTML_OPTIONS,.*|T_SAVE_HTML_OPTIONS, "HTML-Optionen speichern",|' german.lng; \
echo "english" > index.txt; \
echo "german" >> index.txt; \
./gen-intl
$(CHDIR)/$(LINKS_DIR); \
$(call apply_patches,$(LINKS_PATCH)); \
autoreconf -vfi; \
$(CONFIGURE) \
--prefix=$(prefix) \
--mandir=$(REMOVE_mandir) \
--enable-graphics \ --enable-graphics \
--with-fb \ --with-fb \
--with-libjpeg \ --with-libjpeg \
@ -259,8 +249,19 @@ links: $(LINKS_DEPS) $(DL_DIR)/$(LINKS_SOURCE) $(SHARE_PLUGINS) | $(TARGET_DIR)
--without-lzma \ --without-lzma \
--without-pmshell \ --without-pmshell \
--without-svgalib \ --without-svgalib \
--without-x \ --without-x
; \
links: $(LINKS_DEPS) $(DL_DIR)/$(LINKS_SOURCE) $(SHARE_PLUGINS) | $(TARGET_DIR)
$(REMOVE)/$(LINKS_DIR)
$(UNTAR)/$(LINKS_SOURCE)
$(CHDIR)/$(LINKS_DIR)/intl; \
$(SED) 's|^T_SAVE_HTML_OPTIONS,.*|T_SAVE_HTML_OPTIONS, "HTML-Optionen speichern",|' german.lng; \
echo "english" > index.txt; \
echo "german" >> index.txt; \
./gen-intl
$(CHDIR)/$(LINKS_DIR); \
$(call apply_patches,$(LINKS_PATCH)); \
$(CONFIGURE); \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR) $(MAKE) install DESTDIR=$(TARGET_DIR)
mv -f $(TARGET_bindir)/links $(SHARE_PLUGINS)/links.so mv -f $(TARGET_bindir)/links $(SHARE_PLUGINS)/links.so

70
make/target-neutrino.mk

@ -5,7 +5,7 @@
NEUTRINO_INST_DIR ?= $(TARGET_DIR) NEUTRINO_INST_DIR ?= $(TARGET_DIR)
NEUTRINO_OBJ = $(NI-NEUTRINO)-obj NEUTRINO_OBJ = $(NI_NEUTRINO)-obj
NEUTRINO_BUILD_DIR = $(BUILD_DIR)/$(NEUTRINO_OBJ) NEUTRINO_BUILD_DIR = $(BUILD_DIR)/$(NEUTRINO_OBJ)
ifeq ($(BOXTYPE),coolstream) ifeq ($(BOXTYPE),coolstream)
@ -14,8 +14,8 @@ else
NEUTRINO_BRANCH ?= master NEUTRINO_BRANCH ?= master
endif endif
LIBSTB-HAL_OBJ = $(NI-LIBSTB-HAL)-obj LIBSTB_HAL_OBJ = $(NI_LIBSTB_HAL)-obj
LIBSTB-HAL_BUILD_DIR = $(BUILD_DIR)/$(LIBSTB-HAL_OBJ) LIBSTB_HAL_BUILD_DIR = $(BUILD_DIR)/$(LIBSTB_HAL_OBJ)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -55,7 +55,7 @@ NEUTRINO_CFLAGS += -Wno-psabi
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
NEUTRINO_LDFLAGS = $(CORTEX-STRINGS_LDFLAG) NEUTRINO_LDFLAGS = $(CORTEX_STRINGS_LDFLAG)
NEUTRINO_LDFLAGS += -L$(TARGET_base_libdir) -L$(TARGET_libdir) NEUTRINO_LDFLAGS += -L$(TARGET_base_libdir) -L$(TARGET_libdir)
NEUTRINO_LDFLAGS += -Wl,-rpath,$(TARGET_libdir) -Wl,-rpath-link,$(TARGET_libdir) NEUTRINO_LDFLAGS += -Wl,-rpath,$(TARGET_libdir) -Wl,-rpath-link,$(TARGET_libdir)
ifeq ($(DEBUG),yes) ifeq ($(DEBUG),yes)
@ -76,7 +76,7 @@ NEUTRINO_WEATHER_DEV_KEY ?=
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
NEUTRINO_CONF_ENV = \ NEUTRINO_CONF_ENV = \
$(MAKE_OPTS) \ $(TARGET_MAKE_OPTS) \
\ \
CFLAGS="$(NEUTRINO_CFLAGS)" \ CFLAGS="$(NEUTRINO_CFLAGS)" \
CPPFLAGS="$(NEUTRINO_CFLAGS)" \ CPPFLAGS="$(NEUTRINO_CFLAGS)" \
@ -91,8 +91,9 @@ NEUTRINO_CONF_ENV += \
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
NEUTRINO_CONF_OPTS = \ NEUTRINO_CONF_OPTS = \
--host=$(TARGET) \
--build=$(BUILD) \ --build=$(BUILD) \
--host=$(TARGET) \
--target=$(TARGET) \
--prefix=$(prefix) \ --prefix=$(prefix) \
--enable-maintainer-mode \ --enable-maintainer-mode \
--enable-silent-rules \ --enable-silent-rules \
@ -137,8 +138,8 @@ ifeq ($(BOXTYPE),coolstream)
else else
NEUTRINO_DEPS += libstb-hal NEUTRINO_DEPS += libstb-hal
NEUTRINO_CONF_OPTS += \ NEUTRINO_CONF_OPTS += \
--with-stb-hal-includes=$(SOURCE_DIR)/$(NI-LIBSTB-HAL)/include \ --with-stb-hal-includes=$(SOURCE_DIR)/$(NI_LIBSTB_HAL)/include \
--with-stb-hal-build=$(LIBSTB-HAL_BUILD_DIR) --with-stb-hal-build=$(LIBSTB_HAL_BUILD_DIR)
NEUTRINO_DEPS += graphlcd-base NEUTRINO_DEPS += graphlcd-base
NEUTRINO_CONF_OPTS += --enable-graphlcd NEUTRINO_CONF_OPTS += --enable-graphlcd
@ -174,12 +175,12 @@ endif
$(NEUTRINO_BUILD_DIR)/config.status: $(NEUTRINO_DEPS) $(NEUTRINO_BUILD_DIR)/config.status: $(NEUTRINO_DEPS)
test -d $(NEUTRINO_BUILD_DIR) || mkdir -p $(NEUTRINO_BUILD_DIR) test -d $(NEUTRINO_BUILD_DIR) || mkdir -p $(NEUTRINO_BUILD_DIR)
$(CD) $(SOURCE_DIR)/$(NI-NEUTRINO); \ $(CD) $(SOURCE_DIR)/$(NI_NEUTRINO); \
git checkout $(NEUTRINO_BRANCH) git checkout $(NEUTRINO_BRANCH)
$(SOURCE_DIR)/$(NI-NEUTRINO)/autogen.sh $(SOURCE_DIR)/$(NI_NEUTRINO)/autogen.sh
$(CD) $(NEUTRINO_BUILD_DIR); \ $(CD) $(NEUTRINO_BUILD_DIR); \
$(NEUTRINO_CONF_ENV) \ $(NEUTRINO_CONF_ENV) \
$(SOURCE_DIR)/$(NI-NEUTRINO)/configure \ $(SOURCE_DIR)/$(NI_NEUTRINO)/configure \
$(NEUTRINO_CONF_OPTS) $(NEUTRINO_CONF_OPTS)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -197,20 +198,21 @@ $(TARGET_sysconfdir)/init.d/start_neutrino:
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
LIBSTB-HAL_DEPS = LIBSTB_HAL_DEPS =
LIBSTB-HAL_DEPS += ffmpeg LIBSTB_HAL_DEPS += ffmpeg
LIBSTB-HAL_DEPS += openthreads LIBSTB_HAL_DEPS += openthreads
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
LIBSTB-HAL_CONF_ENV = \ LIBSTB_HAL_CONF_ENV = \
$(NEUTRINO_CONF_ENV) $(NEUTRINO_CONF_ENV)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
LIBSTB-HAL_CONF_OPTS = \ LIBSTB_HAL_CONF_OPTS = \
--host=$(TARGET) \
--build=$(BUILD) \ --build=$(BUILD) \
--host=$(TARGET) \
--target=$(TARGET) \
--prefix=$(prefix) \ --prefix=$(prefix) \
--enable-maintainer-mode \ --enable-maintainer-mode \
--enable-silent-rules \ --enable-silent-rules \
@ -221,27 +223,27 @@ LIBSTB-HAL_CONF_OPTS = \
--with-boxtype=$(BOXTYPE) --with-boxtype=$(BOXTYPE)
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1 hd2)) ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1 hd2))
LIBSTB-HAL_CONF_OPTS += --with-boxmodel=$(BOXSERIES) LIBSTB_HAL_CONF_OPTS += --with-boxmodel=$(BOXSERIES)
else else
LIBSTB-HAL_CONF_OPTS += --with-boxmodel=$(BOXMODEL) LIBSTB_HAL_CONF_OPTS += --with-boxmodel=$(BOXMODEL)
endif endif
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
$(LIBSTB-HAL_BUILD_DIR)/config.status: $(LIBSTB-HAL_DEPS) $(LIBSTB_HAL_BUILD_DIR)/config.status: $(LIBSTB_HAL_DEPS)
test -d $(LIBSTB-HAL_BUILD_DIR) || mkdir -p $(LIBSTB-HAL_BUILD_DIR) test -d $(LIBSTB_HAL_BUILD_DIR) || mkdir -p $(LIBSTB_HAL_BUILD_DIR)
$(SOURCE_DIR)/$(NI-LIBSTB-HAL)/autogen.sh $(SOURCE_DIR)/$(NI_LIBSTB_HAL)/autogen.sh
$(CD) $(LIBSTB-HAL_BUILD_DIR); \ $(CD) $(LIBSTB_HAL_BUILD_DIR); \
$(LIBSTB-HAL_CONF_ENV) \ $(LIBSTB_HAL_CONF_ENV) \
$(SOURCE_DIR)/$(NI-LIBSTB-HAL)/configure \ $(SOURCE_DIR)/$(NI_LIBSTB_HAL)/configure \
$(LIBSTB-HAL_CONF_OPTS) $(LIBSTB_HAL_CONF_OPTS)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
libstb-hal: $(LIBSTB-HAL_BUILD_DIR)/config.status libstb-hal: $(LIBSTB_HAL_BUILD_DIR)/config.status
$(MAKE) -C $(LIBSTB-HAL_BUILD_DIR) $(MAKE) -C $(LIBSTB_HAL_BUILD_DIR)
$(MAKE) -C $(LIBSTB-HAL_BUILD_DIR) install DESTDIR=$(NEUTRINO_INST_DIR) $(MAKE) -C $(LIBSTB_HAL_BUILD_DIR) install DESTDIR=$(NEUTRINO_INST_DIR)
$(REWRITE_LIBTOOL_LA) $(REWRITE_LIBTOOL)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -277,17 +279,17 @@ neutrino-clean-all: neutrino-clean
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
libstb-hal-uninstall: libstb-hal-uninstall:
-make -C $(LIBSTB-HAL_BUILD_DIR) uninstall DESTDIR=$(TARGET_DIR) -make -C $(LIBSTB_HAL_BUILD_DIR) uninstall DESTDIR=$(TARGET_DIR)
libstb-hal-distclean: libstb-hal-distclean:
-make -C $(LIBSTB-HAL_BUILD_DIR) distclean -make -C $(LIBSTB_HAL_BUILD_DIR) distclean
libstb-hal-clean: libstb-hal-uninstall libstb-hal-distclean libstb-hal-clean: libstb-hal-uninstall libstb-hal-distclean
rm -f $(LIBSTB-HAL_BUILD_DIR)/config.status rm -f $(LIBSTB_HAL_BUILD_DIR)/config.status
rm -f $(DEPS_DIR)/libstb-hal rm -f $(DEPS_DIR)/libstb-hal
libstb-hal-clean-all: libstb-hal-clean libstb-hal-clean-all: libstb-hal-clean
rm -rf $(LIBSTB-HAL_BUILD_DIR) rm -rf $(LIBSTB_HAL_BUILD_DIR)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------

26
make/target-rootfs.mk

@ -20,7 +20,7 @@ $(TARGET_DIR)/.version: | $(TARGET_DIR)
echo "describe=$$(git describe --always --long --tags | sed 's/-/./2')" >> $(@) echo "describe=$$(git describe --always --long --tags | sed 's/-/./2')" >> $(@)
echo "builddate=$$(date)" >> $(@) echo "builddate=$$(date)" >> $(@)
echo "box_model=$(BOXMODEL)" >> $(@) echo "box_model=$(BOXMODEL)" >> $(@)
echo "creator=$(MAINTAINER)" >> $(@) echo "creator=$(TARGET_VENDOR), $(MAINTAINER)" >> $(@)
echo "homepage=www.neutrino-images.de" >> $(@) echo "homepage=www.neutrino-images.de" >> $(@)
ifeq ($(BOXTYPE),$(filter $(BOXTYPE),armbox mipsbox)) ifeq ($(BOXTYPE),$(filter $(BOXTYPE),armbox mipsbox))
echo "imagedir=$(IMAGE_SUBDIR)" >> $(@) echo "imagedir=$(IMAGE_SUBDIR)" >> $(@)
@ -30,7 +30,7 @@ endif
update.urls: $(TARGET_localstatedir)/etc/update.urls update.urls: $(TARGET_localstatedir)/etc/update.urls
$(TARGET_localstatedir)/etc/update.urls: | $(TARGET_DIR) $(TARGET_localstatedir)/etc/update.urls: | $(TARGET_DIR)
echo "$(NI-SERVER)/update.php" > $(@) echo "$(NI_SERVER)/update.php" > $(@)
echo "$(CHANNELLISTS_SITE)/$(CHANNELLISTS_MD5FILE)" >> $(@) echo "$(CHANNELLISTS_SITE)/$(CHANNELLISTS_MD5FILE)" >> $(@)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -122,14 +122,14 @@ rootfs-cleanup: $(ROOTFS)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
ROOTFS-STRIP_BINS = $(base_bindir) ROOTFS_STRIP_BINS = $(base_bindir)
ROOTFS-STRIP_BINS += $(base_sbindir) ROOTFS_STRIP_BINS += $(base_sbindir)
ROOTFS-STRIP_BINS += $(bindir) ROOTFS_STRIP_BINS += $(bindir)
ROOTFS-STRIP_BINS += $(sbindir) ROOTFS_STRIP_BINS += $(sbindir)
ROOTFS-STRIP_BINS += /usr/share/tuxbox/neutrino/plugins ROOTFS_STRIP_BINS += /usr/share/tuxbox/neutrino/plugins
ROOTFS-STRIP_LIBS = $(base_libdir) ROOTFS_STRIP_LIBS = $(base_libdir)
ROOTFS-STRIP_LIBS += $(libdir) ROOTFS_STRIP_LIBS += $(libdir)
# strip bins and libs in root filesystem # strip bins and libs in root filesystem
rootfs-strip: $(ROOTFS) rootfs-strip: $(ROOTFS)
@ -137,10 +137,10 @@ ifneq ($(DEBUG),yes)
$(call draw_line); $(call draw_line);
@echo "The following warnings from strip are harmless!" @echo "The following warnings from strip are harmless!"
$(call draw_line); $(call draw_line);
for dir in $(ROOTFS-STRIP_BINS); do \ for dir in $(ROOTFS_STRIP_BINS); do \
find $(ROOTFS)$${dir} -type f -print0 | xargs -0 $(TARGET_STRIP) || true; \ find $(ROOTFS)$${dir} -type f -print0 | xargs -0 $(TARGET_STRIP) || true; \
done done
for dir in $(ROOTFS-STRIP_LIBS); do \ for dir in $(ROOTFS_STRIP_LIBS); do \
find $(ROOTFS)$${dir} \( \ find $(ROOTFS)$${dir} \( \
-path $(ROOTFS)/lib/libnexus.so -o \ -path $(ROOTFS)/lib/libnexus.so -o \
-path $(ROOTFS)/lib/libnxpl.so -o \ -path $(ROOTFS)/lib/libnxpl.so -o \
@ -168,7 +168,7 @@ get-update-info-hd2:
$(call draw_line); $(call draw_line);
@echo "Get update info for boxmodel $(BOXMODEL)" @echo "Get update info for boxmodel $(BOXMODEL)"
@echo @echo
@$(CD) $(SOURCE_DIR)/$(NI-DRIVERS-BIN)/$(DRIVERS-BIN_DIR); \ @$(CD) $(SOURCE_DIR)/$(NI_DRIVERS_BIN)/$(DRIVERS_BIN_DIR); \
if [ -e vmlinux.ub.gz ]; then \ if [ -e vmlinux.ub.gz ]; then \
dd status=none if=vmlinux.ub.gz bs=1 skip=$$(LC_ALL=C grep -a -b -o $$'\x1f\x8b\x08\x00\x00\x00\x00\x00' vmlinux.ub.gz \ dd status=none if=vmlinux.ub.gz bs=1 skip=$$(LC_ALL=C grep -a -b -o $$'\x1f\x8b\x08\x00\x00\x00\x00\x00' vmlinux.ub.gz \
| cut -d ':' -f 1) | zcat -q | grep -a "Linux version"; \ | cut -d ':' -f 1) | zcat -q | grep -a "Linux version"; \
@ -185,7 +185,7 @@ get-update-info-hd1:
$(call draw_line); $(call draw_line);
@echo "Get update info for boxmodel $(BOXMODEL)" @echo "Get update info for boxmodel $(BOXMODEL)"
@echo @echo
@$(CD) $(SOURCE_DIR)/$(NI-DRIVERS-BIN)/$(DRIVERS-BIN_DIR); \ @$(CD) $(SOURCE_DIR)/$(NI_DRIVERS_BIN)/$(DRIVERS_BIN_DIR); \
if [ -e zImage ]; then \ if [ -e zImage ]; then \
dd if=zImage bs=1 skip=$$(LC_ALL=C grep -a -b -o $$'\x1f\x8b\x08\x00\x00\x00\x00\x00' zImage \ dd if=zImage bs=1 skip=$$(LC_ALL=C grep -a -b -o $$'\x1f\x8b\x08\x00\x00\x00\x00\x00' zImage \
| cut -d ':' -f 1) | zcat -q | grep -a "Linux version"; \ | cut -d ':' -f 1) | zcat -q | grep -a "Linux version"; \

229
make/target-tools-unused.mk

@ -12,29 +12,22 @@ USBUTILS_SITE = $(KERNEL_MIRROR)/linux/utils/usb/usbutils
$(DL_DIR)/$(USBUTILS_SOURCE): $(DL_DIR)/$(USBUTILS_SOURCE):
$(DOWNLOAD) $(USBUTILS_SITE)/$(USBUTILS_SOURCE) $(DOWNLOAD) $(USBUTILS_SITE)/$(USBUTILS_SOURCE)
USBUTILS_PATCH = usbutils-avoid-dependency-on-bash.patch
USBUTILS_PATCH += usbutils-fix-null-pointer-crash.patch
USBUTILS_DEPS = libusb-compat USBUTILS_DEPS = libusb-compat
usbutils: $(USBUTILS_DEPS) $(DL_DIR)/$(USBUTILS_SOURCE) | $(TARGET_DIR) usbutils: $(USBUTILS_DEPS) $(DL_DIR)/$(USBUTILS_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(USBUTILS_DIR) $(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(USBUTILS_SOURCE) $(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(USBUTILS_DIR); \ $(CHDIR)/$(PKG_DIR); \
$(call apply_patches,$(USBUTILS_PATCH)); \ $(APPLY_PATCHES); \
$(CONFIGURE) \ $(CONFIGURE); \
--prefix=$(prefix) \
--mandir=$(REMOVE_mandir) \
--infodir=$(REMOVE_infodir) \
; \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR) $(MAKE) install DESTDIR=$(TARGET_DIR)
rm -rf $(TARGET_bindir)/lsusb.py rm -rf $(TARGET_bindir)/lsusb.py
rm -rf $(TARGET_bindir)/usbhid-dump rm -rf $(TARGET_bindir)/usbhid-dump
rm -rf $(TARGET_DIR)/sbin/update-usbids.sh rm -rf $(TARGET_sbindir)/update-usbids.sh
rm -rf $(TARGET_datadir)/pkgconfig rm -rf $(TARGET_datadir)/pkgconfig
rm -rf $(TARGET_datadir)/usb.ids.gz rm -rf $(TARGET_datadir)/usb.ids.gz
$(REMOVE)/$(USBUTILS_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -47,51 +40,49 @@ BINUTILS_SITE = $(GNU_MIRROR)/binutils
$(DL_DIR)/$(BINUTILS_SOURCE): $(DL_DIR)/$(BINUTILS_SOURCE):
$(DOWNLOAD) $(BINUTILS_SITE)/$(BINUTILS_SOURCE) $(DOWNLOAD) $(BINUTILS_SITE)/$(BINUTILS_SOURCE)
BINUTILS_BIN = objdump objcopy BINUTILS_CONF_OPTS = \
binutils: $(DL_DIR)/$(BINUTILS_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(BINUTILS_DIR)
$(UNTAR)/$(BINUTILS_SOURCE)
$(CHDIR)/$(BINUTILS_DIR); \
$(CONFIGURE) \
--prefix=$(prefix) \
--disable-multilib \ --disable-multilib \
--disable-werror \ --disable-werror \
--disable-plugins \ --disable-plugins \
--enable-build-warnings=no \ --enable-build-warnings=no \
--disable-sim \ --disable-sim \
--disable-gdb \ --disable-gdb
; \
BINUTILS_BINARIES = objdump objcopy
binutils: $(DL_DIR)/$(BINUTILS_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(CONFIGURE); \
$(MAKE); \ $(MAKE); \
for bin in $(BINUTILS_BIN); do \ for bin in $($(PKG)_BINARIES); do \
$(INSTALL_EXEC) $(BUILD_DIR)/$(BINUTILS_DIR)/binutils/$$bin $(TARGET_bindir)/; \ $(INSTALL_EXEC) $(BUILD_DIR)/$(PKG_DIR)/binutils/$$bin $(TARGET_bindir)/; \
done done
$(REMOVE)/$(BINUTILS_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
BASE-PASSWD_VER = 3.5.29 BASE_PASSWD_VER = 3.5.29
BASE-PASSWD_DIR = base-passwd-$(BASE-PASSWD_VER) BASE_PASSWD_DIR = base-passwd-$(BASE_PASSWD_VER)
BASE-PASSWD_SOURCE = base-passwd_$(BASE-PASSWD_VER).tar.gz BASE_PASSWD_SOURCE = base-passwd_$(BASE_PASSWD_VER).tar.gz
BASE-PASSWD_SITE = https://launchpad.net/debian/+archive/primary/+files BASE_PASSWD_SITE = https://launchpad.net/debian/+archive/primary/+files
$(DL_DIR)/$(BASE-PASSWD_SOURCE): $(DL_DIR)/$(BASE_PASSWD_SOURCE):
$(DOWNLOAD) $(BASE-PASSWD_SITE)/$(BASE-PASSWD_SOURCE) $(DOWNLOAD) $(BASE_PASSWD_SITE)/$(BASE_PASSWD_SOURCE)
base-passwd: $(DL_DIR)/$(BASE-PASSWD_SOURCE) | $(TARGET_DIR) base-passwd: $(DL_DIR)/$(BASE_PASSWD_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(BASE-PASSWD_DIR) $(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(BASE-PASSWD_SOURCE) $(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(BASE-PASSWD_DIR); \ $(CHDIR)/$(PKG_DIR); \
$(APPLY_PATCHES); \ $(APPLY_PATCHES); \
$(CONFIGURE) \ $(CONFIGURE); \
--prefix=$(prefix) \
; \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR) $(MAKE) install DESTDIR=$(TARGET_DIR)
$(INSTALL_DATA) -D $(PKG_BUILD_DIR)/group.master $(TARGET_datadir)/base-passwd/group.master $(INSTALL_DATA) -D $(PKG_BUILD_DIR)/group.master $(TARGET_datadir)/base-passwd/group.master
$(INSTALL_DATA) -D $(PKG_BUILD_DIR)/passwd.master $(TARGET_datadir)/base-passwd/passwd.master $(INSTALL_DATA) -D $(PKG_BUILD_DIR)/passwd.master $(TARGET_datadir)/base-passwd/passwd.master
$(REMOVE)/$(BASE-PASSWD_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -104,44 +95,69 @@ SHADOW_SITE = https://github.com/shadow-maint/shadow/releases/download/$(SHADO
$(DL_DIR)/$(SHADOW_SOURCE): $(DL_DIR)/$(SHADOW_SOURCE):
$(DOWNLOAD) $(SHADOW_SITE)/$(SHADOW_SOURCE) $(DOWNLOAD) $(SHADOW_SITE)/$(SHADOW_SOURCE)
shadow: $(DL_DIR)/$(SHADOW_SOURCE) | $(TARGET_DIR) SHADOW_CONF_OPTS = \
$(REMOVE)/$(SHADOW_DIR)
$(UNTAR)/$(SHADOW_SOURCE)
$(CHDIR)/$(SHADOW_DIR); \
$(CONFIGURE) \
--prefix=$(base_prefix) \ --prefix=$(base_prefix) \
--datarootdir=$(REMOVE_base_datarootdir) \ --datarootdir=$(REMOVE_base_datarootdir)
; \
shadow: $(DL_DIR)/$(SHADOW_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(CONFIGURE); \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR) $(MAKE) install DESTDIR=$(TARGET_DIR)
$(SED) 's|SHELL=.*|SHELL=/bin/sh|' $(TARGET_sysconfdir)/default/useradd $(SED) 's|SHELL=.*|SHELL=/bin/sh|' $(TARGET_sysconfdir)/default/useradd
mkdir -p $(TARGET_sysconfdir)/skel mkdir -p $(TARGET_sysconfdir)/skel
$(REMOVE)/$(SHADOW_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
ASTRA-SM_VER = git BZIP2_VER = 1.0.8
ASTRA-SM_DIR = astra-sm.$(ASTRA-SM_VER) BZIP2_DIR = bzip2-$(BZIP2_VER)
ASTRA-SM_SOURCE = astra-sm.$(ASTRA-SM_VER) BZIP2_SOURCE = bzip2-$(BZIP2_VER).tar.gz
ASTRA-SM_SITE = https://gitlab.com/crazycat69 BZIP2_SITE = https://sourceware.org/pub/bzip2
ASTRA-SM_DEPS = openssl $(DL_DIR)/$(BZIP2_SOURCE):
$(DOWNLOAD) $(BZIP2_SITE)/$(BZIP2_SOURCE)
astra-sm: $(ASTRA-SM_DEPS) | $(TARGET_DIR) bzip2: $(DL_DIR)/$(BZIP2_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(ASTRA-SM_DIR) $(REMOVE)/$(PKG_DIR)
$(GET-GIT-SOURCE) $(ASTRA-SM_SITE)/$(ASTRA-SM_SOURCE) $(DL_DIR)/$(ASTRA-SM_SOURCE) $(UNTAR)/$(PKG_SOURCE)
$(CPDIR)/$(ASTRA-SM_SOURCE) $(CHDIR)/$(PKG_DIR); \
$(CHDIR)/$(ASTRA-SM_DIR); \ $(APPLY_PATCHES); \
autoreconf -fi; \ mv Makefile-libbz2_so Makefile; \
$(TARGET_CONFIGURE_ENV) \
$(MAKE); \
$(MAKE) install PREFIX=$(TARGET_prefix)
rm -f $(TARGET_bindir)/bzip2
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
ASTRA_SM_VER = git
ASTRA_SM_DIR = astra-sm.$(ASTRA_SM_VER)
ASTRA_SM_SOURCE = astra-sm.$(ASTRA_SM_VER)
ASTRA_SM_SITE = https://gitlab.com/crazycat69
ASTRA_SM_DEPS = openssl
ASTRA_SM_AUTORECONF = YES
ASTRA_SM_CONF_OPTS = \
--without-lua
astra-sm: $(ASTRA_SM_DEPS) | $(TARGET_DIR)
$(REMOVE)/$(ASTRA_SM_DIR)
$(GET-GIT-SOURCE) $(ASTRA_SM_SITE)/$(ASTRA_SM_SOURCE) $(DL_DIR)/$(ASTRA_SM_SOURCE)
$(CPDIR)/$(ASTRA_SM_SOURCE)
$(CHDIR)/$(ASTRA_SM_DIR); \
sed -i 's:(CFLAGS):(CFLAGS_FOR_BUILD):' tools/Makefile.am; \ sed -i 's:(CFLAGS):(CFLAGS_FOR_BUILD):' tools/Makefile.am; \
$(CONFIGURE) \ $(CONFIGURE); \
--prefix=$(prefix) \ $(MAKE); \
--sysconfdir=$(sysconfdir) \
--without-lua \
; \
$(MAKE) install DESTDIR=$(TARGET_DIR) $(MAKE) install DESTDIR=$(TARGET_DIR)
$(REMOVE)/$(ASTRA-SM_DIR) $(REMOVE)/$(ASTRA_SM_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -155,15 +171,15 @@ $(DL_DIR)/$(IOZONE_SOURCE):
$(DOWNLOAD) $(IOZONE_SITE)/$(IOZONE_SOURCE) $(DOWNLOAD) $(IOZONE_SITE)/$(IOZONE_SOURCE)
iozone: $(DL_DIR)/$(IOZONE_SOURCE) | $(TARGET_DIR) iozone: $(DL_DIR)/$(IOZONE_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(IOZONE_DIR) $(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(IOZONE_SOURCE) $(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(IOZONE_DIR)/src/current; \ $(CHDIR)/$(PKG_DIR)/src/current; \
$(SED) "s/= gcc/= $(TARGET_CC)/" makefile; \ $(SED) "s/= gcc/= $(TARGET_CC)/" makefile; \
$(SED) "s/= cc/= $(TARGET_CC)/" makefile; \ $(SED) "s/= cc/= $(TARGET_CC)/" makefile; \
$(MAKE_ENV) \ $(TARGET_CONFIGURE_ENV) \
$(MAKE) linux-arm; \ $(MAKE) linux-arm; \
$(INSTALL_EXEC) iozone $(TARGET_bindir)/ $(INSTALL_EXEC) -D iozone $(TARGET_bindir)/iozone
$(REMOVE)/$(IOZONE_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -176,23 +192,23 @@ READLINE_SITE = $(GNU_MIRROR)/readline
$(DL_DIR)/$(READLINE_SOURCE): $(DL_DIR)/$(READLINE_SOURCE):
$(DOWNLOAD) $(READLINE_SITE)/$(READLINE_SOURCE) $(DOWNLOAD) $(READLINE_SITE)/$(READLINE_SOURCE)
READLINE_CONF_OPTS = \
--datarootdir=$(REMOVE_datarootdir)
readline: $(DL_DIR)/$(READLINE_SOURCE) | $(TARGET_DIR) readline: $(DL_DIR)/$(READLINE_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(READLINE_DIR) $(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(READLINE_SOURCE) $(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(READLINE_DIR); \ $(CHDIR)/$(PKG_DIR); \
$(CONFIGURE) \ $(CONFIGURE); \
--prefix=$(prefix) \
--datarootdir=$(REMOVE_datarootdir) \
; \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR) $(MAKE) install DESTDIR=$(TARGET_DIR)
$(REMOVE)/$(READLINE_DIR) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
LIBZEN_VER = 0.4.38 LIBZEN_VER = 0.4.38
LIBZEN_TMP = ZenLib LIBZEN_DIR = ZenLib
LIBZEN_SOURCE = libzen_$(LIBZEN_VER).tar.bz2 LIBZEN_SOURCE = libzen_$(LIBZEN_VER).tar.bz2
LIBZEN_SITE = https://mediaarea.net/download/source/libzen/$(LIBZEN_VER) LIBZEN_SITE = https://mediaarea.net/download/source/libzen/$(LIBZEN_VER)
@ -201,24 +217,23 @@ $(DL_DIR)/$(LIBZEN_SOURCE):
LIBZEN_DEPS = zlib LIBZEN_DEPS = zlib
LIBZEN_AUTORECONF = YES
libzen: $(LIBZEN_DEPS) $(DL_DIR)/$(LIBZEN_SOURCE) | $(TARGET_DIR) libzen: $(LIBZEN_DEPS) $(DL_DIR)/$(LIBZEN_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(LIBZEN_TMP) $(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(LIBZEN_SOURCE) $(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(LIBZEN_TMP)/Project/GNU/Library; \ $(CHDIR)/$(PKG_DIR)/Project/GNU/Library; \
autoreconf -fi; \ $(CONFIGURE); \
$(CONFIGURE) \
--prefix=$(prefix) \
; \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR) $(MAKE) install DESTDIR=$(TARGET_DIR)
$(REWRITE_LIBTOOL_LA) $(REWRITE_LIBTOOL)
$(REMOVE)/$(LIBZEN_TMP) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
LIBMEDIAINFO_VER = 20.08 LIBMEDIAINFO_VER = 20.08
LIBMEDIAINFO_TMP = MediaInfoLib LIBMEDIAINFO_DIR = MediaInfoLib
LIBMEDIAINFO_SOURCE = libmediainfo_$(LIBMEDIAINFO_VER).tar.bz2 LIBMEDIAINFO_SOURCE = libmediainfo_$(LIBMEDIAINFO_VER).tar.bz2
LIBMEDIAINFO_SITE = https://mediaarea.net/download/source/libmediainfo/$(LIBMEDIAINFO_VER) LIBMEDIAINFO_SITE = https://mediaarea.net/download/source/libmediainfo/$(LIBMEDIAINFO_VER)
@ -227,24 +242,23 @@ $(DL_DIR)/$(LIBMEDIAINFO_SOURCE):
LIBMEDIAINFO_DEPS = libzen LIBMEDIAINFO_DEPS = libzen
LIBMEDIAINFO_AUTORECONF = YES
libmediainfo: $(LIBMEDIAINFO_DEPS) $(DL_DIR)/$(LIBMEDIAINFO_SOURCE) | $(TARGET_DIR) libmediainfo: $(LIBMEDIAINFO_DEPS) $(DL_DIR)/$(LIBMEDIAINFO_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(LIBMEDIAINFO_TMP) $(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(LIBMEDIAINFO_SOURCE) $(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(LIBMEDIAINFO_TMP)/Project/GNU/Library; \ $(CHDIR)/$(PKG_DIR)/Project/GNU/Library; \
autoreconf -fi; \ $(CONFIGURE); \
$(CONFIGURE) \
--prefix=$(prefix) \
; \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR) $(MAKE) install DESTDIR=$(TARGET_DIR)
$(REWRITE_LIBTOOL_LA) $(REWRITE_LIBTOOL)
$(REMOVE)/$(LIBMEDIAINFO_TMP) $(REMOVE)/$(PKG_DIR)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
MEDIAINFO_VER = 20.08 MEDIAINFO_VER = 20.08
MEDIAINFO_TMP = MediaInfo MEDIAINFO_DIR = MediaInfo
MEDIAINFO_SOURCE = mediainfo_$(MEDIAINFO_VER).tar.bz2 MEDIAINFO_SOURCE = mediainfo_$(MEDIAINFO_VER).tar.bz2
MEDIAINFO_SITE = https://mediaarea.net/download/source/mediainfo/$(MEDIAINFO_VER) MEDIAINFO_SITE = https://mediaarea.net/download/source/mediainfo/$(MEDIAINFO_VER)
@ -253,15 +267,14 @@ $(DL_DIR)/$(MEDIAINFO_SOURCE):
MEDIAINFO_DEPS = libmediainfo MEDIAINFO_DEPS = libmediainfo
MEDIAINFO_AUTORECONF = YES
mediainfo: $(MEDIAINFO_DEPS) $(DL_DIR)/$(MEDIAINFO_SOURCE) | $(TARGET_DIR) mediainfo: $(MEDIAINFO_DEPS) $(DL_DIR)/$(MEDIAINFO_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(MEDIAINFO_TMP) $(REMOVE)/$(MEDIAINFO_DIR)
$(UNTAR)/$(MEDIAINFO_SOURCE) $(UNTAR)/$(MEDIAINFO_SOURCE)
$(CHDIR)/$(MEDIAINFO_TMP)/Project/GNU/CLI; \ $(CHDIR)/$(MEDIAINFO_DIR)/Project/GNU/CLI; \
autoreconf -fi; \ $(CONFIGURE); \
$(CONFIGURE) \
--prefix=$(prefix) \
; \
$(MAKE); \ $(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR) $(MAKE) install DESTDIR=$(TARGET_DIR)
$(REMOVE)/$(MEDIAINFO_TMP) $(REMOVE)/$(MEDIAINFO_DIR)
$(TOUCH) $(TOUCH)

1582
make/target-tools.mk

File diff suppressed because it is too large

0
patches/alsa-lib/0000-alsa_pc_in.patch → package/alsa-lib/patches/0000-alsa_pc_in.patch

0
patches/alsa-lib/0001-Don-t-use-fork-on-noMMU-platforms.patch → package/alsa-lib/patches/0001-Don-t-use-fork-on-noMMU-platforms.patch

0
patches/autofs/force-STRIP-to-emtpy.patch → package/autofs/patches/0000-force-STRIP-to-emtpy.patch

0
patches/base-passwd/0000-align-root.patch → package/base-passwd/patches/0000-align-root.patch

0
patches/base-passwd/0005-disable-docs.patch → package/base-passwd/patches/0005-disable-docs.patch

0
patches/bash/bash50-001 → package/bash/patches/bash50-001

0
patches/bash/bash50-002 → package/bash/patches/bash50-002

0
patches/bash/bash50-003 → package/bash/patches/bash50-003

0
patches/bash/bash50-004 → package/bash/patches/bash50-004

0
patches/bash/bash50-005 → package/bash/patches/bash50-005

0
patches/bash/bash50-006 → package/bash/patches/bash50-006

0
patches/bash/bash50-007 → package/bash/patches/bash50-007

0
patches/bash/bash50-008 → package/bash/patches/bash50-008

0
patches/bash/bash50-009 → package/bash/patches/bash50-009

0
patches/bash/bash50-010 → package/bash/patches/bash50-010

0
patches/bash/bash50-011 → package/bash/patches/bash50-011

0
patches/bash/bash50-012 → package/bash/patches/bash50-012

0
patches/bash/bash50-013 → package/bash/patches/bash50-013

0
patches/bash/bash50-014 → package/bash/patches/bash50-014

0
patches/bash/bash50-015 → package/bash/patches/bash50-015

0
patches/bash/bash50-016 → package/bash/patches/bash50-016

0
patches/bash/bash50-017 → package/bash/patches/bash50-017

0
configs/busybox-minimal.config → package/busybox/files/busybox-minimal.config

0
patches/busybox-fix-config-header.diff → package/busybox/patches/busybox-fix-config-header.diff

0
patches/busybox-fix-partition-size.patch → package/busybox/patches/busybox-fix-partition-size.patch

0
patches/busybox-insmod-hack.patch → package/busybox/patches/busybox-insmod-hack.patch

0
patches/busybox-mount_single_uuid.patch → package/busybox/patches/busybox-mount_single_uuid.patch

0
patches/bzip2.patch → package/bzip2/patches/bzip2.patch

0
patches/cairo-get_bitmap_surface.diff → package/cairo/patches/cairo-get_bitmap_surface.diff

0
patches/coreutils-fix-build.patch → package/coreutils/patches/coreutils-fix-build.patch

0
configs/ct-ng-armbox.config → package/crosstool-ng/files/ct-ng-armbox.config

0
configs/ct-ng-coolstream-hd1.config → package/crosstool-ng/files/ct-ng-coolstream-hd1.config

0
configs/ct-ng-coolstream-hd2.config → package/crosstool-ng/files/ct-ng-coolstream-hd2.config

0
configs/ct-ng-mipsbox.config → package/crosstool-ng/files/ct-ng-mipsbox.config

0
configs/ct-ng-uClibc-1.0.24.config → package/crosstool-ng/files/ct-ng-uClibc-1.0.24.config

0
patches/crosstool-ng-bash-version.patch → package/crosstool-ng/patches/crosstool-ng-bash-version.patch

0
patches/crosstool-ng/gcc/999-gcc-6.3-backport-fix-of-check-for-empty-string-in-ubsan.c.patch → package/crosstool-ng/patches/gcc/999-gcc-6.3-backport-fix-of-check-for-empty-string-in-ubsan.c.patch

0
patches/djmount-fix-hang-with-asset-upnp.patch → package/djmount/patches/djmount-fix-hang-with-asset-upnp.patch

0
patches/djmount-fix-incorrect-range-when-retrieving-content-via-HTTP.patch → package/djmount/patches/djmount-fix-incorrect-range-when-retrieving-content-via-HTTP.patch

0
patches/djmount-fix-new-autotools.diff → package/djmount/patches/djmount-fix-new-autotools.diff

0
patches/djmount-fix-newer-gcc.patch → package/djmount/patches/djmount-fix-newer-gcc.patch

0
patches/djmount-fixed-crash-when-using-UTF-8-charset.patch → package/djmount/patches/djmount-fixed-crash-when-using-UTF-8-charset.patch

0
patches/djmount-fixed-crash.patch → package/djmount/patches/djmount-fixed-crash.patch

0
patches/djmount-support-fstab-mounting.diff → package/djmount/patches/djmount-support-fstab-mounting.diff

0
patches/djmount-support-seeking-in-large-2gb-files.patch → package/djmount/patches/djmount-support-seeking-in-large-2gb-files.patch

0
patches/dosfstools/switch-to-AC_CHECK_LIB-for-iconv-library-linking.patch → package/dosfstools/patches/switch-to-AC_CHECK_LIB-for-iconv-library-linking.patch

0
patches/dvb-apps/0001-Fix-generate-keynames.patch → package/dvb-apps/patches/0001-Fix-generate-keynames.patch

0
patches/dvb-apps/0001-dvbdate-Remove-Obsoleted-stime-API-calls.patch → package/dvb-apps/patches/0001-dvbdate-Remove-Obsoleted-stime-API-calls.patch

0
patches/dvb-apps/0003-handle-static-shared-only-build.patch → package/dvb-apps/patches/0003-handle-static-shared-only-build.patch

0
patches/dvb-apps/0004-Makefile-remove-test.patch → package/dvb-apps/patches/0004-Makefile-remove-test.patch

0
patches/dvb-apps/0005-libucsi-optimization-removal.patch → package/dvb-apps/patches/0005-libucsi-optimization-removal.patch

0
patches/dvb-apps/0006-CA_SET_PID.patch → package/dvb-apps/patches/0006-CA_SET_PID.patch

0
patches/expat-libtool-tag.patch → package/expat/patches/expat-libtool-tag.patch

0
patches/ext4_utils.mk → package/ext4_utils/patches/ext4_utils.mk

0
patches/fbshot-32bit_cs_fb.diff → package/fbshot/patches/fbshot-32bit_cs_fb.diff

0
patches/fbshot_cs_hd2.diff → package/fbshot/patches/fbshot_cs_hd2.diff

0
patches/ffmpeg/4_02_fix_mpegts.patch → package/ffmpeg/patches/4_02_fix_mpegts.patch

0
patches/ffmpeg/4_03_allow_to_choose_rtmp_impl_at_runtime.patch → package/ffmpeg/patches/4_03_allow_to_choose_rtmp_impl_at_runtime.patch

0
patches/ffmpeg/4_04_hls_replace_key_uri.patch → package/ffmpeg/patches/4_04_hls_replace_key_uri.patch

0
patches/ffmpeg/4_06_optimize_aac.patch → package/ffmpeg/patches/4_06_optimize_aac.patch

0
patches/ffmpeg/4_07_increase_buffer_size.patch → package/ffmpeg/patches/4_07_increase_buffer_size.patch

0
patches/ffmpeg/4_08_recheck_discard_flags.patch → package/ffmpeg/patches/4_08_recheck_discard_flags.patch

0
patches/ffmpeg/4_09_ffmpeg_fix_edit_list_parsing.patch → package/ffmpeg/patches/4_09_ffmpeg_fix_edit_list_parsing.patch

0
patches/ffmpeg/4_10_rtsp_patch → package/ffmpeg/patches/4_10_rtsp_patch

0
patches/ffmpeg/4_11_dxva2_patch → package/ffmpeg/patches/4_11_dxva2_patch

0
patches/ffmpeg/4_A02-corrupt-h264-frames.patch → package/ffmpeg/patches/4_A02-corrupt-h264-frames.patch

0
patches/ffmpeg/4_A11-FFmpeg-devel-amfenc-Add-support-for-pict_type-field.patch → package/ffmpeg/patches/4_A11-FFmpeg-devel-amfenc-Add-support-for-pict_type-field.patch

0
patches/ffmpeg/4_mips64_cpu_detection.patch → package/ffmpeg/patches/4_mips64_cpu_detection.patch

0
patches/freetype2-config.patch → package/freetype2/patches/freetype2-config.patch

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save