mirror of https://github.com/OpenIPC/firmware.git
fix build xmdp package (#633)
parent
f9798c5d3f
commit
2ad030ec31
|
@ -13,6 +13,8 @@
|
||||||
#include "netip.h"
|
#include "netip.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
|
#include <sys/select.h>
|
||||||
|
|
||||||
#define PACKED __attribute__((packed))
|
#define PACKED __attribute__((packed))
|
||||||
|
|
||||||
#define OP_LOGIN 1000
|
#define OP_LOGIN 1000
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# xmdp | updated 2022.08.10
|
# xmdp
|
||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
@ -10,15 +10,13 @@ define XMDP_EXTRACT_CMDS
|
||||||
cp -avr ../general/package/xmdp/src/* $(@D)/
|
cp -avr ../general/package/xmdp/src/* $(@D)/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
#define XMDP_BUILD_CMDS
|
XMDP_MAKE_OPTS = \
|
||||||
# (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)
|
CC="$(TARGET_CC)"
|
||||||
#endef
|
|
||||||
|
|
||||||
define XMDP_BUILD_CMDS
|
define XMDP_BUILD_CMDS
|
||||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
|
$(MAKE) $(XMDP_MAKE_OPTS) -C $(@D)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
define XMDP_INSTALL_TARGET_CMDS
|
define XMDP_INSTALL_TARGET_CMDS
|
||||||
install -m 0755 -D $(@D)/xmdp $(TARGET_DIR)/usr/bin/xmdp
|
install -m 0755 -D $(@D)/xmdp $(TARGET_DIR)/usr/bin/xmdp
|
||||||
endef
|
endef
|
||||||
|
|
Loading…
Reference in New Issue