On Sat, 2008-05-24 at 16:25 +0100, David Woodhouse wrote:Here's what I have (on top of the git tree) now. I just need to sort out the clean/mrproper behaviour -- and possibly should rename the korg firmware to firmware/korg/k1212.c_shipped? commit 728aa4212690701823ce3dcf22816f3953923530 Author: David Woodhouse <dwmw2@infradead.org> Date: Sat May 24 11:56:32 2008 +0100 firmware: move firmware files into firmware/ Signed-off-by: David Woodhouse <dwmw2@infradead.org> diff --git a/firmware/Makefile b/firmware/Makefile index f6b0c3c..62c2825 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -2,10 +2,15 @@ # kbuild file for firmware/ # +firmware-$(CONFIG_SND_KORG1212_FIRMWARE_IN_KERNEL) += korg/k1212 + firmware_bins := $(subst ",,$(CONFIG_BUILTIN_FIRMWARE)) -firmware_objs := $(patsubst %,%.o, $(firmware_bins)) -firmware_srcs := $(patsubst %,$(obj)/%.c, $(firmware_bins)) +firmware_srcs_generated := $(patsubst %,$(obj)/%.c, $(firmware_bins)) +firmware_objs := $(patsubst %,%.o, $(firmware_bins) $(firmware-y)) +firmware_dirs := $(patsubst %,$(objtree)/$(obj)/%,$(dir $(firmware_objs))) +quiet_cmd_mkdir = MKDIR $@ + cmd_mkdir = mkdir -p $@ quiet_cmd_fwbin = MK_FW $@ cmd_fwbin = echo '/* File automatically generated */' > $@ ; \ @@ -16,9 +21,14 @@ quiet_cmd_fwbin = MK_FW $@ echo '};' >> $@ ; \ echo 'DECLARE_BUILTIN_FIRMWARE("$(patsubst firmware/%.c,%,$@)",fw);' >> $@ -$(firmware_srcs): $(obj)/%.c: $(srctree)/$(obj)/% +$(firmware_srcs_generated): $(obj)/%.c: $(srctree)/$(obj)/% $(call cmd,fwbin) +$(firmware_dirs): + $(call cmd,mkdir) + +$(patsubst %,$(obj)/%,$(firmware_objs)): $(firmware_dirs) + obj-y := $(firmware_objs) -targets := $(firmware_objs) +targets := $(firmware_objs) $(patsubst $(obj)/%,%, $(firmware_srcs_generated)) diff --git a/sound/pci/korg1212/korg1212-firmware.c b/firmware/korg/k1212.c similarity index 100% rename from sound/pci/korg1212/korg1212-firmware.c rename to firmware/korg/k1212.c diff --git a/sound/pci/korg1212/Makefile b/sound/pci/korg1212/Makefile index 7a5ebdf..f11ce1b 100644 --- a/sound/pci/korg1212/Makefile +++ b/sound/pci/korg1212/Makefile @@ -7,4 +7,3 @@ snd-korg1212-objs := korg1212.o # Toplevel Module Dependency obj-$(CONFIG_SND_KORG1212) += snd-korg1212.o -obj-$(CONFIG_SND_KORG1212_FIRMWARE_IN_KERNEL) += korg1212-firmware.o -- dwmw2 --
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| James Bottomley | Re: Announce: Linux-next (Or Andrew's dream :-)) |
| Andrew Morton | echo mem > /sys/power/state |
| Peter Zijlstra | [PATCH 00/23] per device dirty throttling -v8 |
git: | |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
| Gerrit Renker | [PATCH 18/37] dccp: Support for Mandatory options |
| Michael S. Tsirkin | Re: [RFC PATCH v2 03/19] vbus: add connection-client helper infrastructure |
| NeilBrown | [PATCH 00/18] Assorted md patches headed for 2.6.30 |
| Justin Piszcz | General question (scheduler) with SSDs? |
| Neil Brown | Re: Any hope for a 27 disk RAID6+1HS array with four disks reporting "No md superb... |
| Ryan Wagoner | High IO Wait with RAID 1 |
