diff --git a/package/linuxptp/linuxptp.mk b/package/linuxptp/linuxptp.mk index beb2591c32..0fc85b056c 100644 --- a/package/linuxptp/linuxptp.mk +++ b/package/linuxptp/linuxptp.mk @@ -11,15 +11,22 @@ LINUXPTP_LICENSE = GPL-2.0+ LINUXPTP_LICENSE_FILES = COPYING define LINUXPTP_BUILD_CMDS - $(TARGET_MAKE_ENV) CROSS_COMPILE="$(TARGET_CROSS)" \ - $(MAKE) KBUILD_OUTPUT=$(TARGET_DIR) \ - EXTRA_CFLAGS="$(TARGET_CFLAGS)" EXTRA_LDFLAGS="$(TARGET_LDFLAGS)" \ + $(TARGET_MAKE_ENV) \ + CROSS_COMPILE="$(TARGET_CROSS)" \ + $(MAKE) \ + KBUILD_OUTPUT=$(TARGET_DIR) \ + EXTRA_CFLAGS="$(TARGET_CFLAGS)" \ + EXTRA_LDFLAGS="$(TARGET_LDFLAGS)" \ -C $(@D) all endef define LINUXPTP_INSTALL_TARGET_CMDS - $(TARGET_MAKE_ENV) $(MAKE) prefix=/usr DESTDIR=$(TARGET_DIR) \ - $(TARGET_CONFIGURE_OPTS) -C $(@D) install + $(TARGET_MAKE_ENV) \ + $(MAKE) \ + prefix=/usr \ + DESTDIR=$(TARGET_DIR) \ + $(TARGET_CONFIGURE_OPTS) \ + -C $(@D) install $(INSTALL) -D -m 644 $(LINUXPTP_PKGDIR)/linuxptp.cfg \ $(TARGET_DIR)/etc/linuxptp.cfg