[PATCH 2/2 v2] compat-drivers: Fetch in DRM drivers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Grab DRM drivers from $GIT_URL if drm is passed in the command line.

Note that 'make' will not currently build these drivers. This is just
for fetching them in.

Signed-off-by: Ozan Çağlayan <ozancag@xxxxxxxxx>
---
 This v2 fixes a minor glitch in the previous patch. Ignore the first one.

 scripts/admin-update.sh | 42 +++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 41 insertions(+), 1 deletion(-)

diff --git a/scripts/admin-update.sh b/scripts/admin-update.sh
index fe52419..0fa46c2 100755
--- a/scripts/admin-update.sh
+++ b/scripts/admin-update.sh
@@ -422,6 +422,23 @@ DRIVERS_WLAN_FILES="adm8211.c
 		    mwl8k.c
 		    rndis_wlan.c"
 
+# DRM drivers
+DRIVERS_DRM="drivers/gpu/drm/ast
+	     drivers/gpu/drm/cirrus
+	     drivers/gpu/drm/gma500
+	     drivers/gpu/drm/i2c
+	     drivers/gpu/drm/i810
+	     drivers/gpu/drm/i915
+	     drivers/gpu/drm/mgag200
+	     drivers/gpu/drm/nouveau
+	     drivers/gpu/drm/radeon
+	     drivers/gpu/drm/ttm
+	     drivers/gpu/drm/via
+	     drivers/gpu/drm/vmwgfx"
+
+# UDL uses the new dma-buf API, let's disable this for now
+#DRIVERS="$DRIVERS drivers/gpu/drm/udl"
+
 rm -rf drivers/
 
 mkdir -p include/net/bluetooth \
@@ -435,13 +452,15 @@ mkdir -p include/net/bluetooth \
 	 drivers/misc/eeprom \
 	 drivers/net/usb \
 	 drivers/net/ethernet/broadcom \
+	 drivers/platform/x86 \
 	 drivers/ssb \
 	 drivers/staging \
 	 $NET_WLAN_DIRS \
 	 $NET_BT_DIRS \
 	 $DRIVERS_WLAN \
 	 $DRIVERS_ETH \
-	 $DRIVERS_BT
+	 $DRIVERS_BT \
+	 $DRIVERS_DRM
 
 if [[ "$ENABLE_NETWORK" == "1" ]]; then
 	# WLAN and bluetooth files
@@ -479,6 +498,27 @@ if [[ "$ENABLE_NETWORK" == "1" ]]; then
 	echo "obj-\$(CONFIG_B44) += b44.o" > drivers/net/ethernet/broadcom/Makefile
 fi
 
+if [[ "$ENABLE_DRM" == "1" ]]; then
+	# DRM drivers
+	copyDirectories "$DRIVERS_DRM"
+
+	# Copy standalone drivers
+	echo "Copying $GIT_TREE/drivers/gpu/drm/*.[ch]"
+	cp $GIT_TREE/drivers/gpu/drm/{Makefile,*.[ch]} drivers/gpu/drm/
+
+	# Copy DRM headers
+	cp -a $GIT_TREE/include/drm include/
+
+	# drivers/gpu/drm/i915/intel_pm.c requires this
+	cp $GIT_TREE/drivers/platform/x86/intel_ips.h drivers/platform/x86
+
+	# Copy radeon reg_srcs for hostprogs
+	cp -a $GIT_TREE/drivers/gpu/drm/radeon/reg_srcs drivers/gpu/drm/radeon
+
+	# Finally get the DRM top-level makefile
+	cp $GIT_TREE/drivers/gpu/drm/Makefile drivers/gpu/drm
+fi
+
 # Staging drivers in their own directory
 for i in $STAGING_DRIVERS; do
 	if [ ! -d $GIT_TREE/$i ]; then
-- 
1.7.11.2

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux