Dream in staging: separate Kconfig/Makefile into subdirectory

From: Pavel Machek
Date: Sat Aug 08 2009 - 08:27:31 EST



> > OTOH Dream is still major user; and I guess I can just introduce
> > "CONFIG_DREAM". Should I?
>
> What's wrong with using the CONFIG_ANDROID dependancy here? Actually,
> why not use it for all of the dream files?

Ok... simple enough and should do the trick, done :-).

---

Separate Kconfig/Makefile glue from dream into subdirectory. I plan to
add few more drivers, and changing staging/Makefile each time sounds
like inviting conflicts.

Signed-off-by: Pavel Machek <pavel@xxxxxx>

diff --git a/drivers/staging/Kconfig b/drivers/staging/Kconfig
index c0ae9db..7d0ad5a 100644
--- a/drivers/staging/Kconfig
+++ b/drivers/staging/Kconfig
@@ -99,6 +99,8 @@ source "drivers/staging/frontier/Kconfig"

source "drivers/staging/android/Kconfig"

+source "drivers/staging/dream/Kconfig"
+
source "drivers/staging/dst/Kconfig"

source "drivers/staging/pohmelfs/Kconfig"
@@ -129,10 +131,6 @@ source "drivers/staging/vt6656/Kconfig"

source "drivers/staging/cpc-usb/Kconfig"

-source "drivers/staging/dream/smd/Kconfig"
-
-source "drivers/staging/dream/camera/Kconfig"
-
source "drivers/staging/udlfb/Kconfig"

source "drivers/staging/hv/Kconfig"
diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile
index 48cae04..7439983 100644
--- a/drivers/staging/Makefile
+++ b/drivers/staging/Makefile
@@ -32,6 +32,7 @@ obj-$(CONFIG_USB_RSPI) += rspiusb/
obj-$(CONFIG_INPUT_MIMIO) += mimio/
obj-$(CONFIG_TRANZPORT) += frontier/
obj-$(CONFIG_ANDROID) += android/
+obj-$(CONFIG_ANDROID) += dream/
obj-$(CONFIG_DST) += dst/
obj-$(CONFIG_POHMELFS) += pohmelfs/
obj-$(CONFIG_STLC45XX) += stlc45xx/
@@ -47,7 +48,5 @@ obj-$(CONFIG_VT6655) += vt6655/
obj-$(CONFIG_VT6656) += vt6656/
obj-$(CONFIG_USB_CPC) += cpc-usb/
obj-$(CONFIG_FB_UDL) += udlfb/
-obj-$(CONFIG_MSM_ADSP) += dream/qdsp5/ dream/smd/
-obj-$(CONFIG_MSM_CAMERA) += dream/camera/
obj-$(CONFIG_HYPERV) += hv/
obj-$(CONFIG_VME) += vme/

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/