summaryrefslogtreecommitdiffstats
path: root/rules/libsysfs.make
blob: 5a0adcd7c8de749df6ac1475196272db60a7214c (plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# -*-makefile-*-
#
# Copyright (C) 2009 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_LIBSYSFS) += libsysfs

#
# Paths and names
#
LIBSYSFS_VERSION	:= 2.1.0
LIBSYSFS_MD5		:= 14e7dcd0436d2f49aa403f67e1ef7ddc
LIBSYSFS		:= sysfsutils-$(LIBSYSFS_VERSION)
LIBSYSFS_SUFFIX		:= tar.gz
LIBSYSFS_URL		:= $(call ptx/mirror, SF, linux-diag/$(LIBSYSFS).$(LIBSYSFS_SUFFIX))
LIBSYSFS_SOURCE		:= $(SRCDIR)/$(LIBSYSFS).$(LIBSYSFS_SUFFIX)
LIBSYSFS_DIR		:= $(BUILDDIR)/$(LIBSYSFS)
LIBSYSFS_LICENSE	:= GPL-2.0-only AND LGPL-2.0-only
LIBSYSFS_LICENSE_FILES	:= \
	file://cmd/GPL;md5=d41d4e2e1e108554e0388ea4aecd8d27 \
	file://lib/LGPL;md5=b75d069791103ffe1c0d6435deeff72e

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

LIBSYSFS_PATH	:= PATH=$(CROSS_PATH)
LIBSYSFS_ENV 	:= $(CROSS_ENV)

#
# autoconf
#
LIBSYSFS_AUTOCONF := $(CROSS_AUTOCONF_USR)

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/libsysfs.targetinstall:
	@$(call targetinfo)

	@$(call install_init, libsysfs)
	@$(call install_fixup, libsysfs,PRIORITY,optional)
	@$(call install_fixup, libsysfs,SECTION,base)
	@$(call install_fixup, libsysfs,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
	@$(call install_fixup, libsysfs,DESCRIPTION,missing)

	@$(call install_lib, libsysfs, 0,0, 644, libsysfs)

ifdef PTXCONF_LIBSYSFS_SYSTOOL
	@$(call install_copy, libsysfs, 0, 0, 0775, -, /usr/bin/systool)
endif
	@$(call install_finish, libsysfs)

	@$(call touch)

# vim: syntax=make