Add maemo-kexec helper scripts for booting maemo from openwrt on the Nokia n810.
[packages.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:=0.1
12 PKG_RELEASE:=1
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define Package/maemo-kexec
17   SECTION:=utils
18   CATEGORY:=Utilities
19   DEPENDS:=@TARGET_omap24xx +kexec-tools
20   TITLE:=Kexec Maemo from OpenWRT
21   MENU:=1
22 endef
23
24 define Package/maemo-kexec/description
25  Kexec Maemo from OpenWRT.
26  The Maemo kernel image must be provided and the Maemo rootfs
27  must be in the rootfs MTD partition.
28 endef
29
30 define Package/maemo-kexec/config
31         source "$(SOURCE)/Config.in"
32 endef
33
34 define Build/Compile
35 endef
36
37 define Package/maemo-kexec/install
38         $(INSTALL_DIR) $(1)/sbin
39         $(INSTALL_DIR) $(1)/boot
40         $(INSTALL_BIN) ./files/sbin/boot-maemo $(1)/sbin/
41         # --- COPYING MAEMO zImage ---
42         # If this fails, please check CONFIG_MAEMO_KEXEC_KERNEL_PATH
43         $(INSTALL_DATA) $(CONFIG_MAEMO_KEXEC_KERNEL_PATH) $(1)/boot/maemo.zImage
44 endef
45
46 $(eval $(call BuildPackage,maemo-kexec))