2 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
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
)/
19 PKG_CONFIG_DEPENDS
:= \
20 CONFIG_MAEMO_KEXEC_DOWNLOAD_KERNEL \
21 CONFIG_MAEMO_KEXEC_KERNEL_PATH
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/maemo-kexec
28 DEPENDS
:=@TARGET_omap24xx
+kexec-tools
29 TITLE
:=Kexec Maemo from OpenWRT
32 define Package
/maemo-kexec
/description
33 Kexec Maemo from OpenWRT.
34 The Maemo rootfs must be in the rootfs MTD partition.
37 define Package
/maemo-kexec
/config
38 source
"$(SOURCE)/Config.in"
41 define Build
/Configure
47 MAEMO_KRNL_SRC
:=$(if
$(CONFIG_MAEMO_KEXEC_DOWNLOAD_KERNEL
),\
48 $(PKG_BUILD_DIR
)/$(PKG_SOURCE
),\
49 $(CONFIG_MAEMO_KEXEC_KERNEL_PATH
))
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
57 $(eval
$(call BuildPackage
,maemo-kexec
))