Skip to content

Commit

Permalink
move/copy all 32bit OCCU libraries to /lib32 instead. In addition,
Browse files Browse the repository at this point in the history
cleaned up all installation routines to only copy relevant, non-obsolete
binaries/libraries and to keep hands of some non required ones. This
refs #903.
  • Loading branch information
jens-maus committed Sep 15, 2020
1 parent fad839c commit cd561ff
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
2 changes: 2 additions & 0 deletions buildroot-external/configs/raspmatic_ova_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4=y
BR2_PACKAGE_GLIBC_UTILS=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_ROOTFS_LIB_DIR="lib"
BR2_ROOTFS_LIB32_DIR="lib32"
BR2_TARGET_GENERIC_HOSTNAME=""
BR2_TARGET_GENERIC_ISSUE="Welcome to RaspberryMatic"
BR2_TARGET_GENERIC_PASSWD_SHA512=y
Expand Down
24 changes: 19 additions & 5 deletions buildroot-external/package/occu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ OCCU_ROOT=
install_rfd_arch:
mkdir -p $(TARGET_DIR)/bin
mkdir -p $(TARGET_DIR)/lib
mkdir -p $(TARGET_DIR)/$(OCCU_LIBDIR)
mkdir -p $(TARGET_DIR)/etc/config_templates
mkdir -p $(TARGET_DIR)/www/config
mkdir -p $(TARGET_DIR)/firmware
rm -f $(OCCU_ARCH)/packages-eQ-3/RFD/bin/avrprog
cp -R $(OCCU_ARCH)/packages-eQ-3/RFD/bin/* $(TARGET_DIR)/bin/
cp -R $(OCCU_ARCH)/packages-eQ-3/RFD/lib/* $(TARGET_DIR)/lib/
cp -R $(OCCU_ARCH)/packages-eQ-3/RFD/lib/* $(TARGET_DIR)/$(OCCU_LIBDIR)/
cp -a $(OCCU_ARCH)/packages-eQ-3/RFD/etc/init.d/S61rfd $(TARGET_DIR)/etc/init.d/
cp -R $(OCCU_ARCH)/packages-eQ-3/RFD/etc/config_templates/* $(TARGET_DIR)/etc/config_templates/
cp -R $(OCCU_ARCH)/packages-eQ-3/RFD/www/config/* $(TARGET_DIR)/www/config/
Expand All @@ -23,21 +25,33 @@ ifneq (,$(filter $(OCCU_RF_PROTOCOL), HM_HMIP HMIP))
endif

install_hs485d_arch:
cp -R $(OCCU_ARCH)/packages-eQ-3/HS485D/* $(TARGET_DIR)/
cp -R $(OCCU_ARCH)/packages-eQ-3/HS485D/bin/* $(TARGET_DIR)/bin/
cp -R $(OCCU_ARCH)/packages-eQ-3/HS485D/etc/* $(TARGET_DIR)/etc/
cp -R $(OCCU_ARCH)/packages-eQ-3/HS485D/lib/* $(TARGET_DIR)/$(OCCU_LIBDIR)/

install_webui_arch:
rm -f $(OCCU_ARCH)/packages-eQ-3/WebUI/config
rm -f $(OCCU_ARCH)/packages-eQ-3/WebUI/bin/ReGaHss.normal
rm -f $(OCCU_ARCH)/packages-eQ-3/WebUI/bin/eq3-uds-services
cp -R $(OCCU_ARCH)/packages-eQ-3/WebUI/bin/* $(TARGET_DIR)/bin/
rm -rf $(OCCU_ARCH)/packages-eQ-3/WebUI/etc/config
cp -R $(OCCU_ARCH)/packages-eQ-3/WebUI/* $(TARGET_DIR)/
cp -R $(OCCU_ARCH)/packages-eQ-3/WebUI/etc/* $(TARGET_DIR)/etc/
rm -f $(OCCU_ARCH)/packages-eQ-3/WebUI/lib/libeq3udss.so
cp -R $(OCCU_ARCH)/packages-eQ-3/WebUI/lib/*.so $(TARGET_DIR)/$(OCCU_LIBDIR)/
cp -R $(OCCU_ARCH)/packages-eQ-3/WebUI/lib/tcl8.2 $(TARGET_DIR)/lib/
ln -sf /lib32/tclrega.so $(TARGET_DIR)/lib/
ln -sf /lib32/tclrpc.so $(TARGET_DIR)/lib/
ln -sf /lib32/tclticks.so $(TARGET_DIR)/lib/
cp -R WebUI/* $(TARGET_DIR)/
mv $(TARGET_DIR)/bin/ReGaHss.community $(TARGET_DIR)/bin/ReGaHss
ifeq ($(OCCU_WEBUI_REGAHSS_BETA), y)
cp -R $(OCCU_ARCH)/packages-eQ-3/WebUI-Beta/* $(TARGET_DIR)/
cp -R $(OCCU_ARCH)/packages-eQ-3/WebUI-Beta/bin/* $(TARGET_DIR)/bin/
cp -R $(OCCU_ARCH)/packages-eQ-3/WebUI-Beta/lib/* $(TARGET_DIR)/$(OCCU_LIBDIR)/
endif

install_linuxbasis_arch:
cp -av $(OCCU_ARCH)/packages-eQ-3/LinuxBasis/bin/* $(TARGET_DIR)/bin/
cp -av $(OCCU_ARCH)/packages-eQ-3/LinuxBasis/lib/* $(TARGET_DIR)/lib/
cp -av $(OCCU_ARCH)/packages-eQ-3/LinuxBasis/lib/* $(TARGET_DIR)/$(OCCU_LIBDIR)/

install_lighttpd_arch:
mkdir -p $(TARGET_DIR)/etc/lighttpd
Expand Down
5 changes: 5 additions & 0 deletions buildroot-external/package/occu/occu.mk
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,24 @@ endif

ifeq ($(BR2_arm),y)
OCCU_ARCH=arm-gnueabihf-gcc8
OCCU_LIBDIR=lib
endif

ifeq ($(BR2_i386),y)
OCCU_ARCH=X86_32_GCC8
OCCU_LIBDIR=lib
endif

ifeq ($(BR2_x86_64),y)
OCCU_ARCH=X86_32_GCC8
OCCU_LIBDIR=$(BR2_ROOTFS_LIB32_DIR)
endif

define OCCU_INSTALL_TARGET_CMDS
$(MAKE) OCCU_RF_PROTOCOL=$(OCCU_RF_PROTOCOL) \
OCCU_ARCH=$(OCCU_ARCH) \
OCCU_LIBDIR=$(OCCU_LIBDIR) \
OCCU_WEBUI_REGAHSS_BETA=$(OCCU_WEBUI_REGAHSS_BETA) \
OCCU_WEBUI_REGAHSS_BETA=$(OCCU_WEBUI_REGAHSS_BETA) \
-C $(@D) install
endef
Expand Down

0 comments on commit cd561ff

Please sign in to comment.