summaryrefslogtreecommitdiffstats
path: root/utils/calvaria/Makefile
blob: f8574fae4dc59ec1b454eb6f452fc07ed050a03f (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
#
# Copyright (C) 2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.

include $(TOPDIR)/rules.mk

PKG_NAME:=calvaria
PKG_RELEASE:=1

PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1

include $(INCLUDE_DIR)/package.mk

define Package/calvaria
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=Maemo CAL partition access tool
  MAINTAINER:=Michael Buesch <mb@bu3sch.de>
endef

define Package/calvaria/description
  Calvaria - Maemo CAL partition variable access tool
  The CAL partition (/dev/mtdblock1) is used to store configuration
  and calibration data.
endef

define Build/Prepare
	$(CP) ./files/src/* $(PKG_BUILD_DIR)/
endef

define Package/calvaria/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/calvaria $(1)/usr/bin/
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cal2p54 $(1)/usr/bin/
endef

$(eval $(call BuildPackage,calvaria))