Update hi3518ev200_smarthome project

pull/1/head
Igor Zalatov (from Citadel PC) 2022-09-13 12:03:37 +03:00
parent b9c3147792
commit bfcf80ddcc
9 changed files with 38 additions and 38 deletions

View File

@ -107,6 +107,6 @@ BR2_PACKAGE_HOST_GDB=y
BR2_PACKAGE_GDB=y
# SMARTHOME
# BR2_PACKAGE_AX_AGENT is not set
# BR2_PACKAGE_DEMO_OPENIPC is not set
# BR2_PACKAGE_DBELL_INA219 is not set

View File

@ -1 +0,0 @@
../../general/package/ax-agent

View File

@ -0,0 +1 @@
../../general/package/demo-openipc

View File

@ -1,7 +0,0 @@
config BR2_PACKAGE_AX_AGENT
bool "ax-agent"
default n
help
Simple daemon
https://openipc.org

View File

@ -1,25 +0,0 @@
################################################################################
#
# ax-agent | updated 2022.09.04
#
################################################################################
AX_AGENT_LICENSE = MIT
AX_AGENT_LICENSE_FILES = LICENSE
define AX_AGENT_EXTRACT_CMDS
cp ../general/package/ax-agent/src/ax-agent.c $(@D)/
endef
define AX_AGENT_BUILD_CMDS
(cd $(@D); $(TARGET_CC) -s ax-agent.c -o ax-agent)
endef
define AX_AGENT_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 -d $(TARGET_DIR)/etc/init.d
cp ../general/package/ax-agent/files/S97agent $(TARGET_DIR)/etc/init.d
install -m 0755 -D $(@D)/ax-agent $(TARGET_DIR)/usr/sbin/ax-agent
endef
$(eval $(generic-package))

View File

@ -0,0 +1,7 @@
config BR2_PACKAGE_DEMO_OPENIPC
bool "demo-openipc"
default n
help
Demo package
https://openipc.org

View File

@ -0,0 +1,25 @@
################################################################################
#
# demo-openipc | updated 2022.09.13
#
################################################################################
DEMO_OPENIPC_LICENSE = MIT
DEMO_OPENIPC_LICENSE_FILES = LICENSE
define DEMO_OPENIPC_EXTRACT_CMDS
cp ../general/package/demo-openipc/src/* $(@D)/
endef
define DEMO_OPENIPC_BUILD_CMDS
(cd $(@D); $(TARGET_CC) -s demo-openipc.c -o demo-openipc)
endef
define DEMO_OPENIPC_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 -d $(TARGET_DIR)/etc/init.d
cp ../general/package/demo-openipc/files/S97demo $(TARGET_DIR)/etc/init.d
install -m 0755 -D $(@D)/demo-openipc $(TARGET_DIR)/usr/sbin/demo-openipc
endef
$(eval $(generic-package))

View File

@ -1,9 +1,9 @@
#!/bin/sh
DAEMON="ax-agent"
DAEMON="demo-openipc"
PIDFILE="/var/run/$DAEMON.pid"
AGENT_ARGS=""
DAEMON_ARGS=""
# shellcheck source=/dev/null
[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON"
@ -15,7 +15,7 @@ start() {
[ -f /usr/sbin/$DAEMON ] || echo -en "DISABLED, "
# shellcheck disable=SC2086 # we need the word splitting
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/sbin/$DAEMON" \
-- $AGENT_ARGS
-- $DAEMON_ARGS
status=$?
if [ "$status" -eq 0 ]; then
echo "OK"

View File

@ -2,6 +2,6 @@
int main (void)
{
puts ("Hello, World!");
puts ("Welcome to OpenIPC !");
return 0;
}