forked from swift-nav/piksi_buildroot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample_daemon.mk
More file actions
31 lines (23 loc) · 828 Bytes
/
sample_daemon.mk
File metadata and controls
31 lines (23 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
################################################################################
#
# sample_daemon
#
################################################################################
ifeq ($(BR2_BUILD_SAMPLE_DAEMON),y)
SAMPLE_DAEMON_VERSION = 0.1
SAMPLE_DAEMON_SITE = \
"${BR2_EXTERNAL_piksi_buildroot_PATH}/package/sample_daemon"
SAMPLE_DAEMON_SITE_METHOD = local
SAMPLE_DAEMON_DEPENDENCIES = libuv libsbp libpiksi
define SAMPLE_DAEMON_USERS
sampld -1 sampld -1 * - - -
endef
define SAMPLE_DAEMON_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/src/sample_daemon $(TARGET_DIR)/usr/bin
endef
define SAMPLE_DAEMON_BUILD_CMDS
$(MAKE) CROSS=$(TARGET_CROSS) LD=$(TARGET_LD) -C $(@D)/src all
endef
BR2_ROOTFS_OVERLAY += "${SAMPLE_DAEMON_SITE}/overlay"
$(eval $(generic-package))
endif # ($(BR2_BUILD_SAMPLE_DAEMON),y)