# -*-makefile-*- # $Id$ # # Copyright (C) 2003 by Marc Kleine-Budde # # 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 # # ifdef PTXCONF_KERNEL_MTD # KERNEL_PATCHES += kernel-mtd # endif # # Paths and names # KERNEL_MTD_VERSION = $(call get_option, \ s/^PTXCONF_KERNEL_\([0-9]\)_\([0-9]\)_\([0-9]*\)_\(rmk[0-9]\)_\(pxa[0-9]\)_\(mtd[0-9]*\).*/\1.\2.\3-\4-\5-\6/, mtd) KERNEL_MTD = linux-$(KERNEL_MTD_VERSION) KERNEL_MTD_SUFFIX = diff.bz2 KERNEL_MTD_URL = http://www.pengutronix.de/software/linux-arm/$(KERNEL_MTD).$(KERNEL_MTD_SUFFIX) KERNEL_MTD_SOURCE = $(SRCDIR)/linux-$(KERNEL_MTD_VERSION).$(KERNEL_MTD_SUFFIX) # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- kernel-mtd_get: $(STATEDIR)/kernel-mtd.get kernel-mtd_get_deps = \ $(KERNEL_MTD_SOURCE) $(STATEDIR)/kernel-mtd.get: $(kernel-mtd_get_deps) @$(call targetinfo, $@) touch $@ $(KERNEL_MTD_SOURCE): @$(call targetinfo, $@) @$(call get, $(KERNEL_MTD_URL)) # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- kernel-mtd_install: $(STATEDIR)/kernel-mtd.install $(STATEDIR)/kernel-mtd.install: $(STATEDIR)/kernel-mtd.get @$(call targetinfo, $@) @$(call patch_apply, $(KERNEL_MTD_SOURCE), $(KERNEL_DIR)) touch $@ # ---------------------------------------------------------------------------- # Clean # ---------------------------------------------------------------------------- kernel-mtd_clean: rm -rf $(STATEDIR)/kernel* # vim: syntax=make