• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/linuxptp/linuxptp.mk
Petr KulhavyPetr Kulhavy committed 2f5dea383e711 Sep 2017
Raw file
Source viewDiff to previous
 
1
################################################################################
2
#
3
# linuxptp
4
#
5
################################################################################
6
​
7
LINUXPTP_VERSION = 17c9787b1d6891636b5be9e4e5a08278b44e9a7a
8
LINUXPTP_SITE_METHOD = git
9
LINUXPTP_SITE = git://git.code.sf.net/p/linuxptp/code
10
LINUXPTP_LICENSE = GPL-2.0+
11
LINUXPTP_LICENSE_FILES = COPYING
12
​
13
LINUXPTP_MAKE_ENV = \
14
    $(TARGET_MAKE_ENV) \
15
    CROSS_COMPILE="$(TARGET_CROSS)" \
16
    KBUILD_OUTPUT=$(STAGING_DIR)
17
​
18
LINUXPTP_MAKE_OPTS = \
19
    prefix=/usr \
20
    EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
21
    EXTRA_LDFLAGS="$(TARGET_LDFLAGS)"
22
​
23
define LINUXPTP_BUILD_CMDS
24
    $(LINUXPTP_MAKE_ENV) $(MAKE) $(LINUXPTP_MAKE_OPTS) -C $(@D) all
25
endef
26
​
27
define LINUXPTP_INSTALL_TARGET_CMDS
28
    $(LINUXPTP_MAKE_ENV) $(MAKE) $(LINUXPTP_MAKE_OPTS) \
29
        DESTDIR=$(TARGET_DIR) -C $(@D) install
30
​
31
    $(INSTALL) -D -m 644 $(LINUXPTP_PKGDIR)/linuxptp.cfg \
32
        $(TARGET_DIR)/etc/linuxptp.cfg
33
endef
34
​
35
define LINUXPTP_INSTALL_INIT_SYSV
36
    $(INSTALL) -m 755 -D $(LINUXPTP_PKGDIR)/S65linuxptp \
37
        $(TARGET_DIR)/etc/init.d/S65linuxptp
38
endef
39
​
40
define LINUXPTP_INSTALL_INIT_SYSTEMD
41
    $(INSTALL) -D -m 644 $(LINUXPTP_PKGDIR)/linuxptp.service \
42
        $(TARGET_DIR)/usr/lib/systemd/system/linuxptp.service
43
    $(INSTALL) -D -m 644 $(LINUXPTP_PKGDIR)/linuxptp-system-clock.service \
44
        $(TARGET_DIR)/usr/lib/systemd/system/linuxptp-system-clock.service
45
    mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
46
    ln -sf ../../../../usr/lib/systemd/system/linuxptp.service \
47
        $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/linuxptp.service
48
endef
49
​
50
$(eval $(generic-package))
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.