From 0cbb718c839cf9cc7b1073716a3a4f98a3e75011 Mon Sep 17 00:00:00 2001 From: huyongqiang Date: Thu, 3 Nov 2022 19:45:05 +0800 Subject: [PATCH] yocto: add ntp module. * it provide sorts of Network Time Protocol daemon and utilities. the bb file is from openEmbedded. link: http://layers.openembedded.org/layerindex/recipe/2299/. * all the meanwhile, the code is from src-openeuler. link: https://gitee.com/src-openeuler/ntp version: 4.2.8p15 Signed-off-by: hyq_imago huyongqiang@ncti-gba.cn --- .../recipes-support/ntp/ntp_%.bbappend | 38 +++++++++++++++++++ scripts/download_code.sh | 1 + 2 files changed, 39 insertions(+) create mode 100644 meta-openeuler/recipes-support/ntp/ntp_%.bbappend diff --git a/meta-openeuler/recipes-support/ntp/ntp_%.bbappend b/meta-openeuler/recipes-support/ntp/ntp_%.bbappend new file mode 100644 index 00000000000..addeaece645 --- /dev/null +++ b/meta-openeuler/recipes-support/ntp/ntp_%.bbappend @@ -0,0 +1,38 @@ +# main bbfile: meta-networking/recipes-support/ntp/ntp_4.2.8p15.bb + +# version in openEuler +PV = "4.2.8p15" + +# files, patches can't be applied in openeuler or conflict with openeuler +SRC_URI_remove = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${PV}.tar.gz \ + file://ntp-4.2.4_p6-nano.patch \ + file://reproducibility-fixed-path-to-posix-shell.patch \ + file://0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch \ + file://0001-test-Fix-build-with-new-compiler-defaults-to-fno-com.patch \ + file://0001-sntp-Fix-types-in-check-for-pthread_detach.patch \ +" + +# files, patches that come from openeuler +SRC_URI += "file://ntp-${PV}.tar.gz;name=tarball \ + file://Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch \ + file://bugfix-fix-bind-port-in-debug-mode.patch \ + file://fix-MD5-manpage.patch \ + file://fix-multiple-defination-with-gcc-10.patch \ + file://ntp-ssl-libs.patch \ + file://ntpd \ + file://ntp.conf \ + file://ntpdate \ + file://ntpdate.default \ + file://ntpdate.service \ + file://ntpd.service \ + file://sntp.service \ + file://sntp \ + file://ntpd.list \ +" + + +SRC_URI[tarball.md5sum] = "e1e6b23d2fc75cced41801dbcd6c2561" +SRC_URI[tarball.sha256sum] = "f65840deab68614d5d7ceb2d0bb9304ff70dcdedd09abb79754a87536b849c19" + +#S = "${WORKDIR}/${BP}" + diff --git a/scripts/download_code.sh b/scripts/download_code.sh index b5271ec26c0..f4605d45658 100644 --- a/scripts/download_code.sh +++ b/scripts/download_code.sh @@ -258,6 +258,7 @@ download_code() update_code_repo src-openeuler/dtc ${SRC_BRANCH} update_code_repo src-openeuler/libunwind ${SRC_BRANCH} update_code_repo src-openeuler/libatomic_ops ${SRC_BRANCH} + update_code_repo src-openeuler/ntp ${SRC_BRANCH} } # download iSulad related packages -- Gitee