From 7f4ded19d44609aafc2197d7a2e9bf1c24bdc60f Mon Sep 17 00:00:00 2001
From: "Igor Zalatov (from Citadel PC)" <flyrouter@gmail.com>
Date: Wed, 6 Dec 2023 23:31:46 +0300
Subject: [PATCH] Remove unused projects

---
 .../configs/hi3518ev200_cip37210_defconfig    |   1 -
 .../general/overlay/etc/composer.ini          |   2 -
 .../configs/ssc325_lite_imou-f22ap_defconfig  | 119 ------------------
 .../general/overlay/etc/TZ                    |   1 -
 .../general/overlay/etc/composer.ini          |   4 -
 .../general/overlay/etc/init.d/S94dn-monitor  |  10 --
 .../general/overlay/etc/timezone              |   1 -
 .../general/overlay/usr/bin/dn-monitor.sh     |  50 --------
 8 files changed, 188 deletions(-)
 delete mode 120000 projects/hi3518ev200_cip37210/br-ext-chip-hisilicon/configs/hi3518ev200_cip37210_defconfig
 delete mode 100644 projects/hi3518ev200_cip37210/general/overlay/etc/composer.ini
 delete mode 100644 projects/ssc325_lite_imou-f22ap/br-ext-chip-sigmastar/configs/ssc325_lite_imou-f22ap_defconfig
 delete mode 100644 projects/ssc325_lite_imou-f22ap/general/overlay/etc/TZ
 delete mode 100644 projects/ssc325_lite_imou-f22ap/general/overlay/etc/composer.ini
 delete mode 100755 projects/ssc325_lite_imou-f22ap/general/overlay/etc/init.d/S94dn-monitor
 delete mode 100644 projects/ssc325_lite_imou-f22ap/general/overlay/etc/timezone
 delete mode 100755 projects/ssc325_lite_imou-f22ap/general/overlay/usr/bin/dn-monitor.sh

diff --git a/projects/hi3518ev200_cip37210/br-ext-chip-hisilicon/configs/hi3518ev200_cip37210_defconfig b/projects/hi3518ev200_cip37210/br-ext-chip-hisilicon/configs/hi3518ev200_cip37210_defconfig
deleted file mode 120000
index 96af2e6..0000000
--- a/projects/hi3518ev200_cip37210/br-ext-chip-hisilicon/configs/hi3518ev200_cip37210_defconfig
+++ /dev/null
@@ -1 +0,0 @@
-hi3518ev200_lite_defconfig
\ No newline at end of file
diff --git a/projects/hi3518ev200_cip37210/general/overlay/etc/composer.ini b/projects/hi3518ev200_cip37210/general/overlay/etc/composer.ini
deleted file mode 100644
index 6bac510..0000000
--- a/projects/hi3518ev200_cip37210/general/overlay/etc/composer.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-#
-composer_message="This firmware was created with the OpenIPC Composer project"
diff --git a/projects/ssc325_lite_imou-f22ap/br-ext-chip-sigmastar/configs/ssc325_lite_imou-f22ap_defconfig b/projects/ssc325_lite_imou-f22ap/br-ext-chip-sigmastar/configs/ssc325_lite_imou-f22ap_defconfig
deleted file mode 100644
index 8bc3d9b..0000000
--- a/projects/ssc325_lite_imou-f22ap/br-ext-chip-sigmastar/configs/ssc325_lite_imou-f22ap_defconfig
+++ /dev/null
@@ -1,119 +0,0 @@
-# Architecture
-BR2_arm=y
-BR2_cortex_a7=y
-BR2_ARM_EABIHF=y
-BR2_ARM_FPU_NEON_VFPV4=y
-BR2_ARM_INSTRUCTIONS_THUMB2=y
-BR2_KERNEL_HEADERS_VERSION=y
-BR2_DEFAULT_KERNEL_VERSION="4.9.84"
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y
-
-# Toolchain
-BR2_PER_PACKAGE_DIRECTORIES=y
-BR2_GCC_VERSION_12_X=y
-# BR2_TOOLCHAIN_USES_UCLIBC is not set
-# BR2_TOOLCHAIN_BUILDROOT_UCLIBC is not set
-# BR2_TOOLCHAIN_BUILDROOT_LIBC="uclibc"
-BR2_TOOLCHAIN_USES_MUSL=y
-BR2_TOOLCHAIN_BUILDROOT_MUSL=y
-BR2_TOOLCHAIN_BUILDROOT_LIBC="musl"
-BR2_TOOLCHAIN_BUILDROOT_CXX=y
-# BR2_TOOLCHAIN_BUILDROOT_LOCALE is not set
-BR2_TOOLCHAIN_BUILDROOT_USE_SSP=y
-
-# Kernel
-BR2_LINUX_KERNEL=y
-BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
-BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/openipc/linux/archive/$(OPENIPC_KERNEL).tar.gz"
-BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
-BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(EXTERNAL_VENDOR)/board/infinity6/kernel/infinity6-ssc009a.config"
-BR2_LINUX_KERNEL_UIMAGE=y
-BR2_LINUX_KERNEL_XZ=y
-
-# OpenIPC
-BR2_OPENIPC_SOC_VENDOR="sigmastar"
-BR2_OPENIPC_SOC_MODEL="ssc325"
-BR2_OPENIPC_SOC_FAMILY="infinity6"
-BR2_OPENIPC_FLAVOR="lite"
-BR2_OPENIPC_FLASH_SIZE="8"
-
-# Filesystem
-# BR2_TARGET_TZ_INFO is not set
-BR2_TARGET_ROOTFS_CPIO=y
-BR2_TARGET_ROOTFS_SQUASHFS=y
-BR2_TARGET_ROOTFS_SQUASHFS4_XZ=y
-BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL)/overlay"
-BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL)/scripts/rootfs_script.sh"
-
-# OpenIPC configuration
-BR2_TOOLCHAIN_BUILDROOT_VENDOR="openipc"
-BR2_TARGET_GENERIC_ISSUE="Welcome to OpenIPC"
-BR2_TARGET_GENERIC_HOSTNAME="openipc-ssc325"
-BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL)/package/all-patches"
-
-# OpenIPC packages
-BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL)/package/busybox/busybox.config"
-BR2_PACKAGE_DROPBEAR_OPENIPC=y
-# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
-# BR2_PACKAGE_FDK_AAC_OPENIPC is not set
-BR2_PACKAGE_UBOOT_TOOLS=y
-BR2_PACKAGE_HASERL=y
-BR2_PACKAGE_IPCTOOL=y
-BR2_PACKAGE_JSON_C=y
-BR2_PACKAGE_JSONFILTER=y
-BR2_PACKAGE_LIBCURL_OPENIPC=y
-BR2_PACKAGE_LIBCURL_OPENIPC_CURL=y
-# BR2_PACKAGE_LIBCURL_OPENIPC_VERBOSE is not set
-# BR2_PACKAGE_LIBCURL_OPENIPC_PROXY_SUPPORT is not set
-# BR2_PACKAGE_LIBCURL_OPENIPC_COOKIES_SUPPORT is not set
-# BR2_PACKAGE_LIBCURL_OPENIPC_EXTRA_PROTOCOLS_FEATURES is not set
-BR2_PACKAGE_LIBCURL_OPENIPC_MBEDTLS=y
-BR2_PACKAGE_LIBEVENT_OPENIPC=y
-BR2_PACKAGE_LIBEVENT_OPENIPC_REMOVE_PYSCRIPT=y
-BR2_PACKAGE_LIBOGG_OPENIPC=y
-BR2_PACKAGE_LIBYAML=y
-BR2_PACKAGE_MAJESTIC=y
-BR2_PACKAGE_MAJESTIC_FONTS=y
-BR2_PACKAGE_MBEDTLS_OPENIPC=y
-# BR2_PACKAGE_MBEDTLS_OPENIPC_PROGRAMS is not set
-# BR2_PACKAGE_MBEDTLS_OPENIPC_COMPRESSION is not set
-BR2_PACKAGE_MICROBE_WEB=y
-# BR2_PACKAGE_MINI_SNMPD is not set
-# BR2_PACKAGE_MOTORS is not set
-BR2_PACKAGE_OPUS_OPENIPC=y
-BR2_PACKAGE_OPUS_OPENIPC_FIXED_POINT=y
-BR2_PACKAGE_SIGMASTAR_OSDRV_INFINITY6=y
-BR2_PACKAGE_EXFAT_OPENIPC=y
-BR2_PACKAGE_EXFATPROGS=y
-# BR2_PACKAGE_SSHPASS is not set
-# BR2_PACKAGE_UACME_OPENIPC is not set
-BR2_PACKAGE_VTUND_OPENIPC=y
-BR2_PACKAGE_YAML_CLI=y
-BR2_PACKAGE_ZLIB=y
-
-# Wireless
-BR2_PACKAGE_WIRELESS_TOOLS=y
-BR2_PACKAGE_WPA_SUPPLICANT=y
-BR2_PACKAGE_WPA_SUPPLICANT_CLI=y
-BR2_PACKAGE_WPA_SUPPLICANT_NL80211=y
-BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y
-# BR2_PACKAGE_RTL8188EU is not set
-# BR2_PACKAGE_RTL8192EU_OPENIPC is not set
-
-# Debug
-# BR2_PACKAGE_HOST_GDB is not set
-# BR2_PACKAGE_GDB is not set
-
-# CCACHE
-BR2_CCACHE=y
-BR2_CCACHE_DIR="$(HOME)/.ccache"
-
-# External
-BR2_TOOLCHAIN_EXTERNAL=y
-BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
-BR2_TOOLCHAIN_EXTERNAL_CUSTOM_MUSL=y
-BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="arm-openipc-linux-musleabihf"
-BR2_TOOLCHAIN_EXTERNAL_CXX=y
-BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
-BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_9=y
-BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/openipc/firmware/releases/download/$(OPENIPC_TOOLCHAIN).tgz"
diff --git a/projects/ssc325_lite_imou-f22ap/general/overlay/etc/TZ b/projects/ssc325_lite_imou-f22ap/general/overlay/etc/TZ
deleted file mode 100644
index 8d44087..0000000
--- a/projects/ssc325_lite_imou-f22ap/general/overlay/etc/TZ
+++ /dev/null
@@ -1 +0,0 @@
-MSK-3
\ No newline at end of file
diff --git a/projects/ssc325_lite_imou-f22ap/general/overlay/etc/composer.ini b/projects/ssc325_lite_imou-f22ap/general/overlay/etc/composer.ini
deleted file mode 100644
index d2fa214..0000000
--- a/projects/ssc325_lite_imou-f22ap/general/overlay/etc/composer.ini
+++ /dev/null
@@ -1,4 +0,0 @@
-#
-composer_message="This firmware was created with the OpenIPC Composer project"
-#
-default_timezone="MSK-3 | Europe/Simferopol"
diff --git a/projects/ssc325_lite_imou-f22ap/general/overlay/etc/init.d/S94dn-monitor b/projects/ssc325_lite_imou-f22ap/general/overlay/etc/init.d/S94dn-monitor
deleted file mode 100755
index 54ed275..0000000
--- a/projects/ssc325_lite_imou-f22ap/general/overlay/etc/init.d/S94dn-monitor
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-
-if [ /usr/bin/dn-monitor.sh ]; then
-    /usr/bin/dn-monitor.sh > /dev/null 2>&1 &
-else
-    echo "The day/night monitor DISABLED"
-fi
-
-exit 0
diff --git a/projects/ssc325_lite_imou-f22ap/general/overlay/etc/timezone b/projects/ssc325_lite_imou-f22ap/general/overlay/etc/timezone
deleted file mode 100644
index 229be9f..0000000
--- a/projects/ssc325_lite_imou-f22ap/general/overlay/etc/timezone
+++ /dev/null
@@ -1 +0,0 @@
-Europe/Simferopol
\ No newline at end of file
diff --git a/projects/ssc325_lite_imou-f22ap/general/overlay/usr/bin/dn-monitor.sh b/projects/ssc325_lite_imou-f22ap/general/overlay/usr/bin/dn-monitor.sh
deleted file mode 100755
index d83fe70..0000000
--- a/projects/ssc325_lite_imou-f22ap/general/overlay/usr/bin/dn-monitor.sh
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh
-
-again_high_target=120
-again_low_target=50
-pollingInterval=4
-led_state=0
-again_led=0
-
-led_on(){
-	curl http://localhost/night/on && \
-	echo LIGHT IS ON
-}
-
-led_off(){
-	curl http://localhost/night/off && \
-	echo LIGHT IS OFF
-}
-
-main(){
-
-	echo "...................."
-	echo "Watching at isp_again > ${again_high_target} to LED ON"
-	echo "Watching at isp_again < ${again_low_target} to LED OFF"
-	echo "Polling interval: ${pollingInterval} sec"
-	echo "...................."
-
-	sleep 10
-	led_off
-
-	while true; do
-
-		led_state=$(curl -s http://localhost/metrics | grep ^night_enabled  | cut -d' ' -f2)
-		again_led=$(curl -s http://localhost/metrics | grep ^isp_again | cut -d' ' -f2)
-
-		echo "again_led: "$again_led
-
-		if [ $again_led -lt $again_low_target -a $led_state -eq 1 ] ;then
-			led_off
-		fi
-
-		if [ $again_led -gt $again_high_target -a $led_state -eq 0 ] ;then
-			led_on
-		fi
-
-		sleep ${pollingInterval}
-		echo "...................."
-        done
-}
-
-main