mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
grab patch from OE to fix cross-compiling
This commit is contained in:
parent
250245fa7e
commit
913ad351c4
11
package/ntp/ntp-cross-compile.patch
Normal file
11
package/ntp/ntp-cross-compile.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- ntp/ntpdc/Makefile.in
|
||||||
|
+++ ntp/ntpdc/Makefile.in
|
||||||
|
@@ -157,7 +157,7 @@
|
||||||
|
bin_PROGRAMS = ntpdc
|
||||||
|
EXTRA_PROGRAMS = ntpdc-layout
|
||||||
|
EXTRA_DATA = check-layout
|
||||||
|
-BUILT_SOURCES = maybe-layout
|
||||||
|
+BUILT_SOURCES =
|
||||||
|
INCLUDES = -I$(top_srcdir)/include
|
||||||
|
# LDADD might need RESLIB and ADJLIB
|
||||||
|
ntpdc_LDADD = version.o ../libntp/libntp.a @READLINE_LIBS@
|
@ -18,6 +18,7 @@ ntp-source: $(DL_DIR)/$(NTP_SOURCE)
|
|||||||
|
|
||||||
$(NTP_DIR)/.unpacked: $(DL_DIR)/$(NTP_SOURCE)
|
$(NTP_DIR)/.unpacked: $(DL_DIR)/$(NTP_SOURCE)
|
||||||
$(NTP_CAT) $(DL_DIR)/$(NTP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
$(NTP_CAT) $(DL_DIR)/$(NTP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||||
|
toolchain/patch-kernel.sh $(NTP_DIR) package/ntp/ ntp\*.patch
|
||||||
$(SED) "s,^#if.*__GLIBC__.*_BSD_SOURCE.*$$,#if 0," \
|
$(SED) "s,^#if.*__GLIBC__.*_BSD_SOURCE.*$$,#if 0," \
|
||||||
$(NTP_DIR)/ntpd/refclock_pcf.c;
|
$(NTP_DIR)/ntpd/refclock_pcf.c;
|
||||||
touch $(NTP_DIR)/.unpacked
|
touch $(NTP_DIR)/.unpacked
|
||||||
@ -26,6 +27,7 @@ $(NTP_DIR)/.configured: $(NTP_DIR)/.unpacked
|
|||||||
(cd $(NTP_DIR); rm -rf config.cache; \
|
(cd $(NTP_DIR); rm -rf config.cache; \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
CFLAGS="$(TARGET_CFLAGS)" \
|
CFLAGS="$(TARGET_CFLAGS)" \
|
||||||
|
ac_cv_lib_md5_MD5Init=no \
|
||||||
./configure \
|
./configure \
|
||||||
--target=$(GNU_TARGET_NAME) \
|
--target=$(GNU_TARGET_NAME) \
|
||||||
--host=$(GNU_TARGET_NAME) \
|
--host=$(GNU_TARGET_NAME) \
|
||||||
@ -43,11 +45,12 @@ $(NTP_DIR)/.configured: $(NTP_DIR)/.unpacked
|
|||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
--with-shared \
|
--with-shared \
|
||||||
--program-transform-name=s,,, \
|
--program-transform-name=s,,, \
|
||||||
|
--without-crypto \
|
||||||
);
|
);
|
||||||
touch $(NTP_DIR)/.configured
|
touch $(NTP_DIR)/.configured
|
||||||
|
|
||||||
$(NTP_DIR)/$(NTP_BINARY): $(NTP_DIR)/.configured
|
$(NTP_DIR)/$(NTP_BINARY): $(NTP_DIR)/.configured
|
||||||
$(MAKE) CC=$(TARGET_CC) -C $(NTP_DIR)
|
$(MAKE) -C $(NTP_DIR)
|
||||||
|
|
||||||
$(TARGET_DIR)/$(NTP_TARGET_BINARY): $(NTP_DIR)/$(NTP_BINARY)
|
$(TARGET_DIR)/$(NTP_TARGET_BINARY): $(NTP_DIR)/$(NTP_BINARY)
|
||||||
install -m 755 $(NTP_DIR)/ntpd/ntpd $(TARGET_DIR)/usr/sbin/ntpd
|
install -m 755 $(NTP_DIR)/ntpd/ntpd $(TARGET_DIR)/usr/sbin/ntpd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user