[packages] pulseaudio: update to 0.9.23
[openwrt/svn-archive/archive.git] / utils / maemo-kexec / Makefile
1 #
2 # Copyright (C) 2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=maemo-kexec
11 PKG_VERSION:=1.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=maemo-rx44-2008.43-7.kernel
15 PKG_SOURCE_URL:=http://bu3sch.de/misc/
16 PKG_MD5SUM:=3cbf571c0618bfe20a69babab6b33bea
17 UNPACK_CMD=$(CP) $(DL_DIR)/$(PKG_SOURCE) $(PKG_BUILD_DIR)/
18
19 PKG_CONFIG_DEPENDS:= \
20 CONFIG_MAEMO_KEXEC_DOWNLOAD_KERNEL \
21 CONFIG_MAEMO_KEXEC_KERNEL_PATH
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/maemo-kexec
26 SECTION:=utils
27 CATEGORY:=Utilities
28 DEPENDS:=@TARGET_omap24xx +kexec-tools
29 TITLE:=Kexec Maemo from OpenWRT
30 endef
31
32 define Package/maemo-kexec/description
33 Kexec Maemo from OpenWRT.
34 The Maemo rootfs must be in the rootfs MTD partition.
35 endef
36
37 define Package/maemo-kexec/config
38 source "$(SOURCE)/Config.in"
39 endef
40
41 define Build/Configure
42 endef
43
44 define Build/Compile
45 endef
46
47 MAEMO_KRNL_SRC:=$(if $(CONFIG_MAEMO_KEXEC_DOWNLOAD_KERNEL),\
48 $(PKG_BUILD_DIR)/$(PKG_SOURCE),\
49 $(CONFIG_MAEMO_KEXEC_KERNEL_PATH))
50
51 define Package/maemo-kexec/install
52 $(INSTALL_DIR) $(1)/boot $(1)/sbin
53 $(INSTALL_BIN) ./files/sbin/bootmaemo $(1)/sbin/
54 $(INSTALL_DATA) $(MAEMO_KRNL_SRC) $(1)/boot/maemo.zImage
55 endef
56
57 $(eval $(call BuildPackage,maemo-kexec))