diff --git a/projects/hi3518ev200_smarthome/br-ext-chip-hisilicon/configs/unknown_unknown_hi3518ev200_smarthome_defconfig b/projects/hi3518ev200_smarthome/br-ext-chip-hisilicon/configs/unknown_unknown_hi3518ev200_smarthome_defconfig index c6198e1..e666c0c 100644 --- a/projects/hi3518ev200_smarthome/br-ext-chip-hisilicon/configs/unknown_unknown_hi3518ev200_smarthome_defconfig +++ b/projects/hi3518ev200_smarthome/br-ext-chip-hisilicon/configs/unknown_unknown_hi3518ev200_smarthome_defconfig @@ -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 diff --git a/projects/hi3518ev200_smarthome/br-ext-chip-hisilicon/package/ax-agent b/projects/hi3518ev200_smarthome/br-ext-chip-hisilicon/package/ax-agent deleted file mode 120000 index ed6ab54..0000000 --- a/projects/hi3518ev200_smarthome/br-ext-chip-hisilicon/package/ax-agent +++ /dev/null @@ -1 +0,0 @@ -../../general/package/ax-agent \ No newline at end of file diff --git a/projects/hi3518ev200_smarthome/br-ext-chip-hisilicon/package/demo-openipc b/projects/hi3518ev200_smarthome/br-ext-chip-hisilicon/package/demo-openipc new file mode 120000 index 0000000..2545c56 --- /dev/null +++ b/projects/hi3518ev200_smarthome/br-ext-chip-hisilicon/package/demo-openipc @@ -0,0 +1 @@ +../../general/package/demo-openipc \ No newline at end of file diff --git a/projects/hi3518ev200_smarthome/general/package/ax-agent/Config.in b/projects/hi3518ev200_smarthome/general/package/ax-agent/Config.in deleted file mode 100644 index 32a435a..0000000 --- a/projects/hi3518ev200_smarthome/general/package/ax-agent/Config.in +++ /dev/null @@ -1,7 +0,0 @@ -config BR2_PACKAGE_AX_AGENT - bool "ax-agent" - default n - help - Simple daemon - - https://openipc.org diff --git a/projects/hi3518ev200_smarthome/general/package/ax-agent/ax-agent.mk b/projects/hi3518ev200_smarthome/general/package/ax-agent/ax-agent.mk deleted file mode 100644 index e078231..0000000 --- a/projects/hi3518ev200_smarthome/general/package/ax-agent/ax-agent.mk +++ /dev/null @@ -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)) diff --git a/projects/hi3518ev200_smarthome/general/package/demo-openipc/Config.in b/projects/hi3518ev200_smarthome/general/package/demo-openipc/Config.in new file mode 100644 index 0000000..8313d77 --- /dev/null +++ b/projects/hi3518ev200_smarthome/general/package/demo-openipc/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_DEMO_OPENIPC + bool "demo-openipc" + default n + help + Demo package + + https://openipc.org diff --git a/projects/hi3518ev200_smarthome/general/package/demo-openipc/demo-openipc.mk b/projects/hi3518ev200_smarthome/general/package/demo-openipc/demo-openipc.mk new file mode 100644 index 0000000..111c0ea --- /dev/null +++ b/projects/hi3518ev200_smarthome/general/package/demo-openipc/demo-openipc.mk @@ -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)) diff --git a/projects/hi3518ev200_smarthome/general/package/ax-agent/files/S97agent b/projects/hi3518ev200_smarthome/general/package/demo-openipc/files/S97demo similarity index 95% rename from projects/hi3518ev200_smarthome/general/package/ax-agent/files/S97agent rename to projects/hi3518ev200_smarthome/general/package/demo-openipc/files/S97demo index 26ee930..807a6ff 100755 --- a/projects/hi3518ev200_smarthome/general/package/ax-agent/files/S97agent +++ b/projects/hi3518ev200_smarthome/general/package/demo-openipc/files/S97demo @@ -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" diff --git a/projects/hi3518ev200_smarthome/general/package/ax-agent/src/ax-agent.c b/projects/hi3518ev200_smarthome/general/package/demo-openipc/src/demo-openipc.c similarity index 59% rename from projects/hi3518ev200_smarthome/general/package/ax-agent/src/ax-agent.c rename to projects/hi3518ev200_smarthome/general/package/demo-openipc/src/demo-openipc.c index aec2262..a53ef84 100644 --- a/projects/hi3518ev200_smarthome/general/package/ax-agent/src/ax-agent.c +++ b/projects/hi3518ev200_smarthome/general/package/demo-openipc/src/demo-openipc.c @@ -2,6 +2,6 @@ int main (void) { - puts ("Hello, World!"); + puts ("Welcome to OpenIPC !"); return 0; } \ No newline at end of file