From 4dae5b26ef2642d73acb696c490ab806b7b4d9da Mon Sep 17 00:00:00 2001 From: "Igor Zalatov (from Citadel PC)" Date: Thu, 11 Aug 2022 01:11:24 +0300 Subject: [PATCH] Add xmdp package --- br-ext-chip-ambarella/package/xmdp | 1 + br-ext-chip-anyka/package/xmdp | 1 + br-ext-chip-fullhan/package/xmdp | 1 + br-ext-chip-goke/Config.in | 1 + br-ext-chip-goke/external.mk | 1 + br-ext-chip-goke/package/xmdp | 1 + br-ext-chip-grainmedia/package/xmdp | 1 + br-ext-chip-hisilicon/Config.in | 1 + br-ext-chip-hisilicon/external.mk | 1 + br-ext-chip-hisilicon/package/xmdp | 1 + br-ext-chip-ingenic/Config.in | 1 + br-ext-chip-ingenic/external.mk | 1 + br-ext-chip-ingenic/package/xmdp | 1 + br-ext-chip-novatek/package/xmdp | 1 + br-ext-chip-rockchip/package/xmdp | 1 + br-ext-chip-sigmastar/package/xmdp | 1 + br-ext-chip-xiongmai/package/xmdp | 1 + general/package/ax-agent/ax-agent.mk | 4 ++-- general/package/hisi_gpio/hisi_gpio.mk | 3 ++- general/package/xmdp/Config.in | 1 + general/package/xmdp/xmdp.mk | 13 ++++++++----- 21 files changed, 30 insertions(+), 8 deletions(-) create mode 120000 br-ext-chip-ambarella/package/xmdp create mode 120000 br-ext-chip-anyka/package/xmdp create mode 120000 br-ext-chip-fullhan/package/xmdp create mode 120000 br-ext-chip-goke/package/xmdp create mode 120000 br-ext-chip-grainmedia/package/xmdp create mode 120000 br-ext-chip-hisilicon/package/xmdp create mode 120000 br-ext-chip-ingenic/package/xmdp create mode 120000 br-ext-chip-novatek/package/xmdp create mode 120000 br-ext-chip-rockchip/package/xmdp create mode 120000 br-ext-chip-sigmastar/package/xmdp create mode 120000 br-ext-chip-xiongmai/package/xmdp diff --git a/br-ext-chip-ambarella/package/xmdp b/br-ext-chip-ambarella/package/xmdp new file mode 120000 index 00000000..61d53d57 --- /dev/null +++ b/br-ext-chip-ambarella/package/xmdp @@ -0,0 +1 @@ +../../general/package/xmdp \ No newline at end of file diff --git a/br-ext-chip-anyka/package/xmdp b/br-ext-chip-anyka/package/xmdp new file mode 120000 index 00000000..61d53d57 --- /dev/null +++ b/br-ext-chip-anyka/package/xmdp @@ -0,0 +1 @@ +../../general/package/xmdp \ No newline at end of file diff --git a/br-ext-chip-fullhan/package/xmdp b/br-ext-chip-fullhan/package/xmdp new file mode 120000 index 00000000..61d53d57 --- /dev/null +++ b/br-ext-chip-fullhan/package/xmdp @@ -0,0 +1 @@ +../../general/package/xmdp \ No newline at end of file diff --git a/br-ext-chip-goke/Config.in b/br-ext-chip-goke/Config.in index 655343a2..7d69767c 100644 --- a/br-ext-chip-goke/Config.in +++ b/br-ext-chip-goke/Config.in @@ -36,4 +36,5 @@ source "$BR2_EXTERNAL_GOKE_PATH/package/uacme-openipc/Config.in" source "$BR2_EXTERNAL_GOKE_PATH/package/vtund-openipc/Config.in" source "$BR2_EXTERNAL_GOKE_PATH/package/wifibroadcast/Config.in" source "$BR2_EXTERNAL_GOKE_PATH/package/yaml-cli/Config.in" +source "$BR2_EXTERNAL_GOKE_PATH/package/xmdp/Config.in" source "$BR2_EXTERNAL_GOKE_PATH/package/zerotier-one/Config.in" diff --git a/br-ext-chip-goke/external.mk b/br-ext-chip-goke/external.mk index 4822fd3b..c234ee71 100644 --- a/br-ext-chip-goke/external.mk +++ b/br-ext-chip-goke/external.mk @@ -36,4 +36,5 @@ include $(BR2_EXTERNAL_GOKE_PATH)/package/uacme-openipc/uacme-openipc.mk include $(BR2_EXTERNAL_GOKE_PATH)/package/vtund-openipc/vtund-openipc.mk include $(BR2_EXTERNAL_GOKE_PATH)/package/wifibroadcast/wifibroadcast.mk include $(BR2_EXTERNAL_GOKE_PATH)/package/yaml-cli/yaml-cli.mk +include $(BR2_EXTERNAL_GOKE_PATH)/package/xmdp/xmdp.mk include $(BR2_EXTERNAL_GOKE_PATH)/package/zerotier-one/zerotier-one.mk diff --git a/br-ext-chip-goke/package/xmdp b/br-ext-chip-goke/package/xmdp new file mode 120000 index 00000000..61d53d57 --- /dev/null +++ b/br-ext-chip-goke/package/xmdp @@ -0,0 +1 @@ +../../general/package/xmdp \ No newline at end of file diff --git a/br-ext-chip-grainmedia/package/xmdp b/br-ext-chip-grainmedia/package/xmdp new file mode 120000 index 00000000..61d53d57 --- /dev/null +++ b/br-ext-chip-grainmedia/package/xmdp @@ -0,0 +1 @@ +../../general/package/xmdp \ No newline at end of file diff --git a/br-ext-chip-hisilicon/Config.in b/br-ext-chip-hisilicon/Config.in index cd054d13..cbe1167a 100644 --- a/br-ext-chip-hisilicon/Config.in +++ b/br-ext-chip-hisilicon/Config.in @@ -45,5 +45,6 @@ source "$BR2_EXTERNAL_HISILICON_PATH/package/uacme-openipc/Config.in" source "$BR2_EXTERNAL_HISILICON_PATH/package/uqmi/Config.in" source "$BR2_EXTERNAL_HISILICON_PATH/package/vtund-openipc/Config.in" source "$BR2_EXTERNAL_HISILICON_PATH/package/wifibroadcast/Config.in" +source "$BR2_EXTERNAL_HISILICON_PATH/package/xmdp/Config.in" source "$BR2_EXTERNAL_HISILICON_PATH/package/yaml-cli/Config.in" source "$BR2_EXTERNAL_HISILICON_PATH/package/zerotier-one/Config.in" diff --git a/br-ext-chip-hisilicon/external.mk b/br-ext-chip-hisilicon/external.mk index e962110d..aa4262fb 100644 --- a/br-ext-chip-hisilicon/external.mk +++ b/br-ext-chip-hisilicon/external.mk @@ -45,5 +45,6 @@ include $(BR2_EXTERNAL_HISILICON_PATH)/package/uacme-openipc/uacme-openipc.mk include $(BR2_EXTERNAL_HISILICON_PATH)/package/uqmi/uqmi.mk include $(BR2_EXTERNAL_HISILICON_PATH)/package/vtund-openipc/vtund-openipc.mk include $(BR2_EXTERNAL_HISILICON_PATH)/package/wifibroadcast/wifibroadcast.mk +include $(BR2_EXTERNAL_HISILICON_PATH)/package/xmdp/xmdp.mk include $(BR2_EXTERNAL_HISILICON_PATH)/package/yaml-cli/yaml-cli.mk include $(BR2_EXTERNAL_HISILICON_PATH)/package/zerotier-one/zerotier-one.mk diff --git a/br-ext-chip-hisilicon/package/xmdp b/br-ext-chip-hisilicon/package/xmdp new file mode 120000 index 00000000..61d53d57 --- /dev/null +++ b/br-ext-chip-hisilicon/package/xmdp @@ -0,0 +1 @@ +../../general/package/xmdp \ No newline at end of file diff --git a/br-ext-chip-ingenic/Config.in b/br-ext-chip-ingenic/Config.in index 5b569a57..cdb9786c 100644 --- a/br-ext-chip-ingenic/Config.in +++ b/br-ext-chip-ingenic/Config.in @@ -28,4 +28,5 @@ source "$BR2_EXTERNAL_INGENIC_PATH/package/opus-openipc/Config.in" source "$BR2_EXTERNAL_INGENIC_PATH/package/rtl8188fu-openipc/Config.in" source "$BR2_EXTERNAL_INGENIC_PATH/package/uacme-openipc/Config.in" source "$BR2_EXTERNAL_INGENIC_PATH/package/vtund-openipc/Config.in" +source "$BR2_EXTERNAL_INGENIC_PATH/package/xmdp/Config.in" source "$BR2_EXTERNAL_INGENIC_PATH/package/yaml-cli/Config.in" diff --git a/br-ext-chip-ingenic/external.mk b/br-ext-chip-ingenic/external.mk index f2ff6979..053853ed 100644 --- a/br-ext-chip-ingenic/external.mk +++ b/br-ext-chip-ingenic/external.mk @@ -28,4 +28,5 @@ include $(BR2_EXTERNAL_INGENIC_PATH)/package/opus-openipc/opus-openipc.mk include $(BR2_EXTERNAL_INGENIC_PATH)/package/rtl8188fu-openipc/rtl8188fu-openipc.mk include $(BR2_EXTERNAL_INGENIC_PATH)/package/uacme-openipc/uacme-openipc.mk include $(BR2_EXTERNAL_INGENIC_PATH)/package/vtund-openipc/vtund-openipc.mk +include $(BR2_EXTERNAL_INGENIC_PATH)/package/xmdp/xmdp.mk include $(BR2_EXTERNAL_INGENIC_PATH)/package/yaml-cli/yaml-cli.mk \ No newline at end of file diff --git a/br-ext-chip-ingenic/package/xmdp b/br-ext-chip-ingenic/package/xmdp new file mode 120000 index 00000000..61d53d57 --- /dev/null +++ b/br-ext-chip-ingenic/package/xmdp @@ -0,0 +1 @@ +../../general/package/xmdp \ No newline at end of file diff --git a/br-ext-chip-novatek/package/xmdp b/br-ext-chip-novatek/package/xmdp new file mode 120000 index 00000000..61d53d57 --- /dev/null +++ b/br-ext-chip-novatek/package/xmdp @@ -0,0 +1 @@ +../../general/package/xmdp \ No newline at end of file diff --git a/br-ext-chip-rockchip/package/xmdp b/br-ext-chip-rockchip/package/xmdp new file mode 120000 index 00000000..61d53d57 --- /dev/null +++ b/br-ext-chip-rockchip/package/xmdp @@ -0,0 +1 @@ +../../general/package/xmdp \ No newline at end of file diff --git a/br-ext-chip-sigmastar/package/xmdp b/br-ext-chip-sigmastar/package/xmdp new file mode 120000 index 00000000..61d53d57 --- /dev/null +++ b/br-ext-chip-sigmastar/package/xmdp @@ -0,0 +1 @@ +../../general/package/xmdp \ No newline at end of file diff --git a/br-ext-chip-xiongmai/package/xmdp b/br-ext-chip-xiongmai/package/xmdp new file mode 120000 index 00000000..61d53d57 --- /dev/null +++ b/br-ext-chip-xiongmai/package/xmdp @@ -0,0 +1 @@ +../../general/package/xmdp \ No newline at end of file diff --git a/general/package/ax-agent/ax-agent.mk b/general/package/ax-agent/ax-agent.mk index 810e28f5..b6eb3c3d 100644 --- a/general/package/ax-agent/ax-agent.mk +++ b/general/package/ax-agent/ax-agent.mk @@ -1,6 +1,6 @@ ################################################################################ # -# ax-agent | updated 2022.08.09 +# ax-agent | updated 2022.08.10 # ################################################################################ @@ -8,7 +8,7 @@ AX_AGENT_LICENSE = MIT AX_AGENT_LICENSE_FILES = LICENSE define AX_AGENT_EXTRACT_CMDS - cp $(BR2_EXTERNAL_GOKE_PATH)/package/ax-agent/src/ax-agent.c $(@D)/ + cp ../general/package/ax-agent/src/ax-agent.c $(@D)/ endef define AX_AGENT_BUILD_CMDS diff --git a/general/package/hisi_gpio/hisi_gpio.mk b/general/package/hisi_gpio/hisi_gpio.mk index 11efb7c6..669f6667 100644 --- a/general/package/hisi_gpio/hisi_gpio.mk +++ b/general/package/hisi_gpio/hisi_gpio.mk @@ -1,6 +1,7 @@ ################################################################################ # -# hisi_gpio +# hisi_gpio | updated 2022.08.10 + # ################################################################################ diff --git a/general/package/xmdp/Config.in b/general/package/xmdp/Config.in index 59df5f74..a8225e61 100644 --- a/general/package/xmdp/Config.in +++ b/general/package/xmdp/Config.in @@ -1,5 +1,6 @@ config BR2_PACKAGE_XMDP bool "xmdp" + default n help Utility for finding devices that support the NETIP protocol diff --git a/general/package/xmdp/xmdp.mk b/general/package/xmdp/xmdp.mk index a31423fb..fe2d5f80 100644 --- a/general/package/xmdp/xmdp.mk +++ b/general/package/xmdp/xmdp.mk @@ -1,21 +1,24 @@ ################################################################################ # -# xmdp +# xmdp | updated 2022.08.10 # ################################################################################ XMDP_LICENSE = Public Domain define XMDP_EXTRACT_CMDS - cp package/x11r7/mcookie/mcookie.c $(@D)/ + cp -avr ../general/package/xmdp/src/* $(@D)/ endef +#define XMDP_BUILD_CMDS +# (cd $(@D); $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -O -g -D LINUX -std=c99 -Wall -Wpedantic -lm -o $(PKG_NAME) xmdp.c netip.c utils.c cjson/cJSON.c) +#endef + define XMDP_BUILD_CMDS - (cd $(@D); $(TARGET_CC) -Wall -Os -s mcookie.c -o mcookie) - $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -O -g -D LINUX -std=c99 -Wall -Wpedantic -lm -o $(PKG_BUILD_DIR)/$(PKG_NAME) \ - $(PKG_BUILD_DIR)/xmdp.c $(PKG_BUILD_DIR)/netip.c $(PKG_BUILD_DIR)/utils.c $(PKG_BUILD_DIR)/cjson/cJSON.c + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) endef + define XMDP_INSTALL_TARGET_CMDS install -m 0755 -D $(@D)/xmdp $(TARGET_DIR)/usr/bin/xmdp endef