Skip to contentSkip to conversation

compat-drivers: Use case instead of if/if/.. blocks

PATCH In review Ozan Çağlayan 2 participants 7 messages Aug 21, 2012 – Aug 22, 2012

lore
Share & tools
lore
#3 lore raw

PATCH 4/5 compat-drivers: Move around patches and selectively apply them

In reply to Ozan Çağlayan

Put wlan/bt/eth related patches under network/ subdirectories. Apply them only if the network subsystem is enabled (For now, it is enabled by default).

Create empty network/ placeholders under patch directories.

---
 ...-QCA-ethernet-driver-which-supercedes-atl.patch |  0
 crap/{ => network}/0002-backport-alx.patch         |  0
 .../0003-remove-atl1c-devices-from-alx.patch       |  0
 ...s-adds-the-802.11ad-60-GHz-wil6210-driver.patch |  0
 patches/{ => network}/0001-netdev_ops.patch        |  0
 patches/{ => network}/0002-net-misc.patch          |  0
 .../0003-netdev-needed_headroom_tailroom.patch     |  0
 patches/{ => network}/0004-wext-namespace.patch    |  0
 patches/{ => network}/02-ksize.patch               |  0
 patches/{ => network}/03-rfkill.patch              |  0
 patches/{ => network}/04-netns.patch               |  0
 patches/{ => network}/05-usb.patch                 |  0
 patches/{ => network}/06-header-changes.patch      |  0
 .../{ => network}/07-change-default-rate-alg.patch |  0
 .../{ => network}/08-rename-config-options.patch   |  0
 .../{ => network}/09-cfg80211-wext-padding.patch   |  0
 patches/{ => network}/09-threaded-irq.patch        |  0
 .../10-add-wext-handlers-to-netdev.patch           |  0
 patches/{ => network}/11-dev-pm-ops.patch          |  0
 patches/{ => network}/12-iw_handler-changes.patch  |  0
 .../12-mac80211-disable-tx-status.patch            |  0
 patches/{ => network}/14-device-type.patch         |  0
 .../{ => network}/15-symbol-export-conflicts.patch |  0
 patches/{ => network}/16-bluetooth.patch           |  0
 patches/{ => network}/17-netdev-queue.patch        |  0
 .../{ => network}/18-rename-usb-net-symbols.patch  |  0
 patches/{ => network}/21-capi-proc_fops.patch      |  0
 patches/{ => network}/22-multiqueue.patch          |  0
 patches/{ => network}/24-pcmcia.patch              |  0
 patches/{ => network}/25-multicast-list_head.patch |  0
 patches/{ => network}/26-sdio-quirks.patch         |  0
 .../27-hermes-read-pda-conflict.patch              |  0
 patches/{ => network}/29-sdio_no_suspend.patch     |  0
 patches/{ => network}/30-bridge-port.patch         |  0
 patches/{ => network}/32-remove-ns-type.patch      |  0
 .../{ => network}/35-fix-makefile-includes.patch   |  0
 patches/{ => network}/36-workqueue.patch           |  0
 patches/{ => network}/37-vsnprintk.patch           |  0
 patches/{ => network}/38-led-max-brightness.patch  |  0
 patches/{ => network}/39-remove_blink_set.patch    |  0
 patches/{ => network}/40-netdev-hw-features.patch  |  0
 patches/{ => network}/42-netlink_seq.patch         |  0
 .../{ => network}/43-rename_pm_qos_request.patch   |  0
 .../44-deactivate-mac80211-tracing.patch           |  0
 .../45-remove-platform-id-table.patch              |  0
 patches/{ => network}/46-use_other_workqueue.patch |  0
 .../47-no_trans_start_on_netdev_queue.patch        |  0
 .../48-use_skb_get_queue_mapping.patch             |  0
 .../{ => network}/50-libertas-olpc-ec-wakeup.patch |  0
 patches/{ => network}/52-tty-dev.patch             |  0
 patches/{ => network}/53-pr_fmt.patch              |  0
 patches/{ => network}/54-get_ts_info.patch         |  0
 .../{ => network}/55-iwlwifi-msg-trace-fix.patch   |  0
 patches/{ => network}/56-mac80211-trace-fix.patch  |  0
 patches/{ => network}/57-iwlwifi-debug-fix.patch   |  0
 .../{ => network}/61-netdev-addr_assign_type.patch |  0
 patches/{ => network}/62-usb_driver_lpm.patch      |  0
 patches/{ => network}/63-tty-termios.patch         |  0
 patches/{ => network}/64-b44-32bit-stats.patch     |  0
 patches/{ => network}/65-ignore-dismantle.patch    |  0
 patches/{ => network}/99-change-makefiles.patch    |  0
 scripts/admin-update.sh                            | 63 +++++++++++++---------
 62 files changed, 39 insertions(+), 24 deletions(-)
 rename crap/{ => network}/0001-alx-add-new-QCA-ethernet-driver-which-supercedes-atl.patch (100%)
 rename crap/{ => network}/0002-backport-alx.patch (100%)
 rename crap/{ => network}/0003-remove-atl1c-devices-from-alx.patch (100%)
 rename crap/{ => network}/0004-wireless-adds-the-802.11ad-60-GHz-wil6210-driver.patch (100%)
 create mode 100644 linux-next-cherry-picks/network/.gitignore
 create mode 100644 linux-next-pending/network/.gitignore
 rename patches/{ => network}/0001-netdev_ops.patch (100%)
 rename patches/{ => network}/0002-net-misc.patch (100%)
 rename patches/{ => network}/0003-netdev-needed_headroom_tailroom.patch (100%)
 rename patches/{ => network}/0004-wext-namespace.patch (100%)
 rename patches/{ => network}/02-ksize.patch (100%)
 rename patches/{ => network}/03-rfkill.patch (100%)
 rename patches/{ => network}/04-netns.patch (100%)
 rename patches/{ => network}/05-usb.patch (100%)
 rename patches/{ => network}/06-header-changes.patch (100%)
 rename patches/{ => network}/07-change-default-rate-alg.patch (100%)
 rename patches/{ => network}/08-rename-config-options.patch (100%)
 rename patches/{ => network}/09-cfg80211-wext-padding.patch (100%)
 rename patches/{ => network}/09-threaded-irq.patch (100%)
 rename patches/{ => network}/10-add-wext-handlers-to-netdev.patch (100%)
 rename patches/{ => network}/11-dev-pm-ops.patch (100%)
 rename patches/{ => network}/12-iw_handler-changes.patch (100%)
 rename patches/{ => network}/12-mac80211-disable-tx-status.patch (100%)
 rename patches/{ => network}/14-device-type.patch (100%)
 rename patches/{ => network}/15-symbol-export-conflicts.patch (100%)
 rename patches/{ => network}/16-bluetooth.patch (100%)
 rename patches/{ => network}/17-netdev-queue.patch (100%)
 rename patches/{ => network}/18-rename-usb-net-symbols.patch (100%)
 rename patches/{ => network}/21-capi-proc_fops.patch (100%)
 rename patches/{ => network}/22-multiqueue.patch (100%)
 rename patches/{ => network}/24-pcmcia.patch (100%)
 rename patches/{ => network}/25-multicast-list_head.patch (100%)
 rename patches/{ => network}/26-sdio-quirks.patch (100%)
 rename patches/{ => network}/27-hermes-read-pda-conflict.patch (100%)
 rename patches/{ => network}/29-sdio_no_suspend.patch (100%)
 rename patches/{ => network}/30-bridge-port.patch (100%)
 rename patches/{ => network}/32-remove-ns-type.patch (100%)
 rename patches/{ => network}/35-fix-makefile-includes.patch (100%)
 rename patches/{ => network}/36-workqueue.patch (100%)
 rename patches/{ => network}/37-vsnprintk.patch (100%)
 rename patches/{ => network}/38-led-max-brightness.patch (100%)
 rename patches/{ => network}/39-remove_blink_set.patch (100%)
 rename patches/{ => network}/40-netdev-hw-features.patch (100%)
 rename patches/{ => network}/42-netlink_seq.patch (100%)
 rename patches/{ => network}/43-rename_pm_qos_request.patch (100%)
 rename patches/{ => network}/44-deactivate-mac80211-tracing.patch (100%)
 rename patches/{ => network}/45-remove-platform-id-table.patch (100%)
 rename patches/{ => network}/46-use_other_workqueue.patch (100%)
 rename patches/{ => network}/47-no_trans_start_on_netdev_queue.patch (100%)
 rename patches/{ => network}/48-use_skb_get_queue_mapping.patch (100%)
 rename patches/{ => network}/50-libertas-olpc-ec-wakeup.patch (100%)
 rename patches/{ => network}/52-tty-dev.patch (100%)
 rename patches/{ => network}/53-pr_fmt.patch (100%)
 rename patches/{ => network}/54-get_ts_info.patch (100%)
 rename patches/{ => network}/55-iwlwifi-msg-trace-fix.patch (100%)
 rename patches/{ => network}/56-mac80211-trace-fix.patch (100%)
 rename patches/{ => network}/57-iwlwifi-debug-fix.patch (100%)
 rename patches/{ => network}/61-netdev-addr_assign_type.patch (100%)
 rename patches/{ => network}/62-usb_driver_lpm.patch (100%)
 rename patches/{ => network}/63-tty-termios.patch (100%)
 rename patches/{ => network}/64-b44-32bit-stats.patch (100%)
 rename patches/{ => network}/65-ignore-dismantle.patch (100%)
 rename patches/{ => network}/99-change-makefiles.patch (100%)
 create mode 100644 pending-stable/network/.gitignore
crap/network/0001-alx-add-new-QCA-ethernet-driver-which-supercedes-atl.patch renamed from crap/0001-alx-add-new-QCA-ethernet-driver-which-supercedes-atl.patch +0 -0
similarity index 100%
rename from crap/0001-alx-add-new-QCA-ethernet-driver-which-supercedes-atl.patch
rename to crap/network/0001-alx-add-new-QCA-ethernet-driver-which-supercedes-atl.patch
crap/network/0002-backport-alx.patch renamed from crap/0002-backport-alx.patch +0 -0
similarity index 100%
rename from crap/0002-backport-alx.patch
rename to crap/network/0002-backport-alx.patch
crap/network/0003-remove-atl1c-devices-from-alx.patch renamed from crap/0003-remove-atl1c-devices-from-alx.patch +0 -0
similarity index 100%
rename from crap/0003-remove-atl1c-devices-from-alx.patch
rename to crap/network/0003-remove-atl1c-devices-from-alx.patch
crap/network/0004-wireless-adds-the-802.11ad-60-GHz-wil6210-driver.patch renamed from crap/0004-wireless-adds-the-802.11ad-60-GHz-wil6210-driver.patch +0 -0
similarity index 100%
rename from crap/0004-wireless-adds-the-802.11ad-60-GHz-wil6210-driver.patch
rename to crap/network/0004-wireless-adds-the-802.11ad-60-GHz-wil6210-driver.patch
linux-next-cherry-picks/network/.gitignore new file +0 -0
new file mode 100644
index 0000000..e69de29
linux-next-pending/network/.gitignore new file +0 -0
new file mode 100644
index 0000000..e69de29
patches/network/0001-netdev_ops.patch renamed from patches/0001-netdev_ops.patch +0 -0
similarity index 100%
rename from patches/0001-netdev_ops.patch
rename to patches/network/0001-netdev_ops.patch
patches/network/0002-net-misc.patch renamed from patches/0002-net-misc.patch +0 -0
similarity index 100%
rename from patches/0002-net-misc.patch
rename to patches/network/0002-net-misc.patch
patches/network/0003-netdev-needed_headroom_tailroom.patch renamed from patches/0003-netdev-needed_headroom_tailroom.patch +0 -0
similarity index 100%
rename from patches/0003-netdev-needed_headroom_tailroom.patch
rename to patches/network/0003-netdev-needed_headroom_tailroom.patch
patches/network/0004-wext-namespace.patch renamed from patches/0004-wext-namespace.patch +0 -0
similarity index 100%
rename from patches/0004-wext-namespace.patch
rename to patches/network/0004-wext-namespace.patch
patches/network/02-ksize.patch renamed from patches/02-ksize.patch +0 -0
similarity index 100%
rename from patches/02-ksize.patch
rename to patches/network/02-ksize.patch
patches/network/03-rfkill.patch renamed from patches/03-rfkill.patch +0 -0
similarity index 100%
rename from patches/03-rfkill.patch
rename to patches/network/03-rfkill.patch
patches/network/04-netns.patch renamed from patches/04-netns.patch +0 -0
similarity index 100%
rename from patches/04-netns.patch
rename to patches/network/04-netns.patch
patches/network/05-usb.patch renamed from patches/05-usb.patch +0 -0
similarity index 100%
rename from patches/05-usb.patch
rename to patches/network/05-usb.patch
patches/network/06-header-changes.patch renamed from patches/06-header-changes.patch +0 -0
similarity index 100%
rename from patches/06-header-changes.patch
rename to patches/network/06-header-changes.patch
patches/network/07-change-default-rate-alg.patch renamed from patches/07-change-default-rate-alg.patch +0 -0
similarity index 100%
rename from patches/07-change-default-rate-alg.patch
rename to patches/network/07-change-default-rate-alg.patch
patches/network/08-rename-config-options.patch renamed from patches/08-rename-config-options.patch +0 -0
similarity index 100%
rename from patches/08-rename-config-options.patch
rename to patches/network/08-rename-config-options.patch
patches/network/09-cfg80211-wext-padding.patch renamed from patches/09-cfg80211-wext-padding.patch +0 -0
similarity index 100%
rename from patches/09-cfg80211-wext-padding.patch
rename to patches/network/09-cfg80211-wext-padding.patch
patches/network/09-threaded-irq.patch renamed from patches/09-threaded-irq.patch +0 -0
similarity index 100%
rename from patches/09-threaded-irq.patch
rename to patches/network/09-threaded-irq.patch
patches/network/10-add-wext-handlers-to-netdev.patch renamed from patches/10-add-wext-handlers-to-netdev.patch +0 -0
similarity index 100%
rename from patches/10-add-wext-handlers-to-netdev.patch
rename to patches/network/10-add-wext-handlers-to-netdev.patch
patches/network/11-dev-pm-ops.patch renamed from patches/11-dev-pm-ops.patch +0 -0
similarity index 100%
rename from patches/11-dev-pm-ops.patch
rename to patches/network/11-dev-pm-ops.patch
patches/network/12-iw_handler-changes.patch renamed from patches/12-iw_handler-changes.patch +0 -0
similarity index 100%
rename from patches/12-iw_handler-changes.patch
rename to patches/network/12-iw_handler-changes.patch
patches/network/12-mac80211-disable-tx-status.patch renamed from patches/12-mac80211-disable-tx-status.patch +0 -0
similarity index 100%
rename from patches/12-mac80211-disable-tx-status.patch
rename to patches/network/12-mac80211-disable-tx-status.patch
patches/network/14-device-type.patch renamed from patches/14-device-type.patch +0 -0
similarity index 100%
rename from patches/14-device-type.patch
rename to patches/network/14-device-type.patch
patches/network/15-symbol-export-conflicts.patch renamed from patches/15-symbol-export-conflicts.patch +0 -0
similarity index 100%
rename from patches/15-symbol-export-conflicts.patch
rename to patches/network/15-symbol-export-conflicts.patch
patches/network/16-bluetooth.patch renamed from patches/16-bluetooth.patch +0 -0
similarity index 100%
rename from patches/16-bluetooth.patch
rename to patches/network/16-bluetooth.patch
patches/network/17-netdev-queue.patch renamed from patches/17-netdev-queue.patch +0 -0
similarity index 100%
rename from patches/17-netdev-queue.patch
rename to patches/network/17-netdev-queue.patch
patches/network/18-rename-usb-net-symbols.patch renamed from patches/18-rename-usb-net-symbols.patch +0 -0
similarity index 100%
rename from patches/18-rename-usb-net-symbols.patch
rename to patches/network/18-rename-usb-net-symbols.patch
patches/network/21-capi-proc_fops.patch renamed from patches/21-capi-proc_fops.patch +0 -0
similarity index 100%
rename from patches/21-capi-proc_fops.patch
rename to patches/network/21-capi-proc_fops.patch
patches/network/22-multiqueue.patch renamed from patches/22-multiqueue.patch +0 -0
similarity index 100%
rename from patches/22-multiqueue.patch
rename to patches/network/22-multiqueue.patch
patches/network/24-pcmcia.patch renamed from patches/24-pcmcia.patch +0 -0
similarity index 100%
rename from patches/24-pcmcia.patch
rename to patches/network/24-pcmcia.patch
patches/network/25-multicast-list_head.patch renamed from patches/25-multicast-list_head.patch +0 -0
similarity index 100%
rename from patches/25-multicast-list_head.patch
rename to patches/network/25-multicast-list_head.patch
patches/network/26-sdio-quirks.patch renamed from patches/26-sdio-quirks.patch +0 -0
similarity index 100%
rename from patches/26-sdio-quirks.patch
rename to patches/network/26-sdio-quirks.patch
patches/network/27-hermes-read-pda-conflict.patch renamed from patches/27-hermes-read-pda-conflict.patch +0 -0
similarity index 100%
rename from patches/27-hermes-read-pda-conflict.patch
rename to patches/network/27-hermes-read-pda-conflict.patch
patches/network/29-sdio_no_suspend.patch renamed from patches/29-sdio_no_suspend.patch +0 -0
similarity index 100%
rename from patches/29-sdio_no_suspend.patch
rename to patches/network/29-sdio_no_suspend.patch
patches/network/30-bridge-port.patch renamed from patches/30-bridge-port.patch +0 -0
similarity index 100%
rename from patches/30-bridge-port.patch
rename to patches/network/30-bridge-port.patch
patches/network/32-remove-ns-type.patch renamed from patches/32-remove-ns-type.patch +0 -0
similarity index 100%
rename from patches/32-remove-ns-type.patch
rename to patches/network/32-remove-ns-type.patch
patches/network/35-fix-makefile-includes.patch renamed from patches/35-fix-makefile-includes.patch +0 -0
similarity index 100%
rename from patches/35-fix-makefile-includes.patch
rename to patches/network/35-fix-makefile-includes.patch
patches/network/36-workqueue.patch renamed from patches/36-workqueue.patch +0 -0
similarity index 100%
rename from patches/36-workqueue.patch
rename to patches/network/36-workqueue.patch
patches/network/37-vsnprintk.patch renamed from patches/37-vsnprintk.patch +0 -0
similarity index 100%
rename from patches/37-vsnprintk.patch
rename to patches/network/37-vsnprintk.patch
patches/network/38-led-max-brightness.patch renamed from patches/38-led-max-brightness.patch +0 -0
similarity index 100%
rename from patches/38-led-max-brightness.patch
rename to patches/network/38-led-max-brightness.patch
patches/network/39-remove_blink_set.patch renamed from patches/39-remove_blink_set.patch +0 -0
similarity index 100%
rename from patches/39-remove_blink_set.patch
rename to patches/network/39-remove_blink_set.patch
patches/network/40-netdev-hw-features.patch renamed from patches/40-netdev-hw-features.patch +0 -0
similarity index 100%
rename from patches/40-netdev-hw-features.patch
rename to patches/network/40-netdev-hw-features.patch
patches/network/42-netlink_seq.patch renamed from patches/42-netlink_seq.patch +0 -0
similarity index 100%
rename from patches/42-netlink_seq.patch
rename to patches/network/42-netlink_seq.patch
patches/network/43-rename_pm_qos_request.patch renamed from patches/43-rename_pm_qos_request.patch +0 -0
similarity index 100%
rename from patches/43-rename_pm_qos_request.patch
rename to patches/network/43-rename_pm_qos_request.patch
patches/network/44-deactivate-mac80211-tracing.patch renamed from patches/44-deactivate-mac80211-tracing.patch +0 -0
similarity index 100%
rename from patches/44-deactivate-mac80211-tracing.patch
rename to patches/network/44-deactivate-mac80211-tracing.patch
patches/network/45-remove-platform-id-table.patch renamed from patches/45-remove-platform-id-table.patch +0 -0
similarity index 100%
rename from patches/45-remove-platform-id-table.patch
rename to patches/network/45-remove-platform-id-table.patch
patches/network/46-use_other_workqueue.patch renamed from patches/46-use_other_workqueue.patch +0 -0
similarity index 100%
rename from patches/46-use_other_workqueue.patch
rename to patches/network/46-use_other_workqueue.patch
patches/network/47-no_trans_start_on_netdev_queue.patch renamed from patches/47-no_trans_start_on_netdev_queue.patch +0 -0
similarity index 100%
rename from patches/47-no_trans_start_on_netdev_queue.patch
rename to patches/network/47-no_trans_start_on_netdev_queue.patch
patches/network/48-use_skb_get_queue_mapping.patch renamed from patches/48-use_skb_get_queue_mapping.patch +0 -0
similarity index 100%
rename from patches/48-use_skb_get_queue_mapping.patch
rename to patches/network/48-use_skb_get_queue_mapping.patch
patches/network/50-libertas-olpc-ec-wakeup.patch renamed from patches/50-libertas-olpc-ec-wakeup.patch +0 -0
similarity index 100%
rename from patches/50-libertas-olpc-ec-wakeup.patch
rename to patches/network/50-libertas-olpc-ec-wakeup.patch
patches/network/52-tty-dev.patch renamed from patches/52-tty-dev.patch +0 -0
similarity index 100%
rename from patches/52-tty-dev.patch
rename to patches/network/52-tty-dev.patch
patches/network/53-pr_fmt.patch renamed from patches/53-pr_fmt.patch +0 -0
similarity index 100%
rename from patches/53-pr_fmt.patch
rename to patches/network/53-pr_fmt.patch
patches/network/54-get_ts_info.patch renamed from patches/54-get_ts_info.patch +0 -0
similarity index 100%
rename from patches/54-get_ts_info.patch
rename to patches/network/54-get_ts_info.patch
patches/network/55-iwlwifi-msg-trace-fix.patch renamed from patches/55-iwlwifi-msg-trace-fix.patch +0 -0
similarity index 100%
rename from patches/55-iwlwifi-msg-trace-fix.patch
rename to patches/network/55-iwlwifi-msg-trace-fix.patch
patches/network/56-mac80211-trace-fix.patch renamed from patches/56-mac80211-trace-fix.patch +0 -0
similarity index 100%
rename from patches/56-mac80211-trace-fix.patch
rename to patches/network/56-mac80211-trace-fix.patch
patches/network/57-iwlwifi-debug-fix.patch renamed from patches/57-iwlwifi-debug-fix.patch +0 -0
similarity index 100%
rename from patches/57-iwlwifi-debug-fix.patch
rename to patches/network/57-iwlwifi-debug-fix.patch
patches/network/61-netdev-addr_assign_type.patch renamed from patches/61-netdev-addr_assign_type.patch +0 -0
similarity index 100%
rename from patches/61-netdev-addr_assign_type.patch
rename to patches/network/61-netdev-addr_assign_type.patch
patches/network/62-usb_driver_lpm.patch renamed from patches/62-usb_driver_lpm.patch +0 -0
similarity index 100%
rename from patches/62-usb_driver_lpm.patch
rename to patches/network/62-usb_driver_lpm.patch
patches/network/63-tty-termios.patch renamed from patches/63-tty-termios.patch +0 -0
similarity index 100%
rename from patches/63-tty-termios.patch
rename to patches/network/63-tty-termios.patch
patches/network/64-b44-32bit-stats.patch renamed from patches/64-b44-32bit-stats.patch +0 -0
similarity index 100%
rename from patches/64-b44-32bit-stats.patch
rename to patches/network/64-b44-32bit-stats.patch
patches/network/65-ignore-dismantle.patch renamed from patches/65-ignore-dismantle.patch +0 -0
similarity index 100%
rename from patches/65-ignore-dismantle.patch
rename to patches/network/65-ignore-dismantle.patch
patches/network/99-change-makefiles.patch renamed from patches/99-change-makefiles.patch +0 -0
similarity index 100%
rename from patches/99-change-makefiles.patch
rename to patches/network/99-change-makefiles.patch
pending-stable/network/.gitignore new file +0 -0
new file mode 100644
index 0000000..e69de29
scripts/admin-update.sh +39 -24

91 lines not on this page · raw message

Signature · 1 line
1.7.11.4
#4 lore raw

PATCH 5/5 compat-drivers: Add DRM patches

In reply to Ozan Çağlayan

These patches are part of the GSoC project for backporting the DRM drivers onto older kernels.

Merge them into the compat-drivers tree.

---
 patches/drm/01-dma_buf_ops-addition.patch         |  54 +++
 patches/drm/02-revert-vm_mmap.patch               | 100 ++++++
 patches/drm/03-swiotlb.patch                      |  87 +++++
 patches/drm/04-revert-prime-support.patch         | 384 ++++++++++++++++++++++
 patches/drm/05-i915-define-acpi-video-class.patch |  18 +
 patches/drm/98-pr_fmt.patch                       | 199 +++++++++++
 patches/drm/99-change-makefile.patch              |  28 ++
 7 files changed, 870 insertions(+)
 create mode 100644 patches/drm/01-dma_buf_ops-addition.patch
 create mode 100644 patches/drm/02-revert-vm_mmap.patch
 create mode 100644 patches/drm/03-swiotlb.patch
 create mode 100644 patches/drm/04-revert-prime-support.patch
 create mode 100644 patches/drm/05-i915-define-acpi-video-class.patch
 create mode 100644 patches/drm/98-pr_fmt.patch
 create mode 100644 patches/drm/99-change-makefile.patch
patches/drm/01-dma_buf_ops-addition.patch new file +54 -0
new file mode 100644
index 0000000..ee95cb5
@@ -0,0 +1,54 @@
+Assign vmap, vunmap and mmap fields in dma_buf_ops structs only
+if kernel version >= 3.5.0 as they are added in 3.5.
+
+Note that the dma-buf itself was added with 3.4. It is not available
+on kernels < 3.4.
+
+Index: compat-drm/drivers/gpu/drm/i915/i915_gem_dmabuf.c
+===================================================================
+--- compat-drm.orig/drivers/gpu/drm/i915/i915_gem_dmabuf.c
++++ compat-drm/drivers/gpu/drm/i915/i915_gem_dmabuf.c
+@@ -159,9 +159,11 @@ static const struct dma_buf_ops i915_dma
+ 	.kmap_atomic = i915_gem_dmabuf_kmap_atomic,
+ 	.kunmap = i915_gem_dmabuf_kunmap,
+ 	.kunmap_atomic = i915_gem_dmabuf_kunmap_atomic,
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0))
+ 	.mmap = i915_gem_dmabuf_mmap,
+ 	.vmap = i915_gem_dmabuf_vmap,
+ 	.vunmap = i915_gem_dmabuf_vunmap,
++#endif
+ };
+ 
+ struct dma_buf *i915_gem_prime_export(struct drm_device *dev,
+Index: compat-drm/drivers/gpu/drm/nouveau/nouveau_prime.c
+===================================================================
+--- compat-drm.orig/drivers/gpu/drm/nouveau/nouveau_prime.c
++++ compat-drm/drivers/gpu/drm/nouveau/nouveau_prime.c
+@@ -111,9 +111,11 @@ static const struct dma_buf_ops nouveau_
+ 	.kmap_atomic = nouveau_gem_kmap_atomic,
+ 	.kunmap = nouveau_gem_kunmap,
+ 	.kunmap_atomic = nouveau_gem_kunmap_atomic,
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0))
+ 	.mmap = nouveau_gem_prime_mmap,
+ 	.vmap = nouveau_gem_prime_vmap,
+ 	.vunmap = nouveau_gem_prime_vunmap,
++#endif
+ };
+ 
+ static int
+Index: compat-drm/drivers/gpu/drm/radeon/radeon_prime.c
+===================================================================
+--- compat-drm.orig/drivers/gpu/drm/radeon/radeon_prime.c
++++ compat-drm/drivers/gpu/drm/radeon/radeon_prime.c
+@@ -134,9 +134,11 @@ const static struct dma_buf_ops radeon_d
+ 	.kmap_atomic = radeon_gem_kmap_atomic,
+ 	.kunmap = radeon_gem_kunmap,
+ 	.kunmap_atomic = radeon_gem_kunmap_atomic,
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0))
+ 	.mmap = radeon_gem_prime_mmap,
+ 	.vmap = radeon_gem_prime_vmap,
+ 	.vunmap = radeon_gem_prime_vunmap,
++#endif
+ };
+ 
+ static int radeon_prime_create(struct drm_device *dev,
patches/drm/02-revert-vm_mmap.patch new file +100 -0

100 lines not on this page · raw message

patches/drm/03-swiotlb.patch new file +87 -0

87 lines not on this page · raw message

patches/drm/04-revert-prime-support.patch new file +384 -0

384 lines not on this page · raw message

patches/drm/05-i915-define-acpi-video-class.patch new file +18 -0
new file mode 100644
index 0000000..7fddd3b
@@ -0,0 +1,18 @@
+The definition of ACPI_VIDEO_CLASS was moved from video.c
+to video.h in 3.1. Define it here to fix build for kernels older
+than 3.1.
+
+Index: compat-drm/drivers/gpu/drm/i915/intel_opregion.c
+===================================================================
+--- compat-drm.orig/drivers/gpu/drm/i915/intel_opregion.c
++++ compat-drm/drivers/gpu/drm/i915/intel_opregion.c
+@@ -307,6 +307,9 @@ static int intel_opregion_video_event(st
+ 	struct acpi_bus_event *event = data;
+ 	int ret = NOTIFY_OK;
+ 
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0))
++#define ACPI_VIDEO_CLASS "video"
++#endif
+ 	if (strcmp(event->device_class, ACPI_VIDEO_CLASS) != 0)
+ 		return NOTIFY_DONE;
+ 
patches/drm/98-pr_fmt.patch new file +199 -0

199 lines not on this page · raw message

patches/drm/99-change-makefile.patch new file +28 -0
new file mode 100644
index 0000000..882a02d
@@ -0,0 +1,28 @@
+Remove drivers that we do not want to build from gpu/drm/Makefile
+
+Index: compat-drm/drivers/gpu/drm/Makefile
+===================================================================
+--- compat-drm.orig/drivers/gpu/drm/Makefile
++++ compat-drm/drivers/gpu/drm/Makefile
+@@ -28,21 +28,14 @@ CFLAGS_drm_trace_points.o := -I$(src)
+ obj-$(CONFIG_DRM)	+= drm.o
+ obj-$(CONFIG_DRM_USB)   += drm_usb.o
+ obj-$(CONFIG_DRM_TTM)	+= ttm/
+-obj-$(CONFIG_DRM_TDFX)	+= tdfx/
+-obj-$(CONFIG_DRM_R128)	+= r128/
+ obj-$(CONFIG_DRM_RADEON)+= radeon/
+-obj-$(CONFIG_DRM_MGA)	+= mga/
+ obj-$(CONFIG_DRM_I810)	+= i810/
+ obj-$(CONFIG_DRM_I915)  += i915/
+ obj-$(CONFIG_DRM_MGAG200) += mgag200/
+ obj-$(CONFIG_DRM_CIRRUS_QEMU) += cirrus/
+-obj-$(CONFIG_DRM_SIS)   += sis/
+-obj-$(CONFIG_DRM_SAVAGE)+= savage/
+ obj-$(CONFIG_DRM_VMWGFX)+= vmwgfx/
+ obj-$(CONFIG_DRM_VIA)	+=via/
+ obj-$(CONFIG_DRM_NOUVEAU) +=nouveau/
+-obj-$(CONFIG_DRM_EXYNOS) +=exynos/
+ obj-$(CONFIG_DRM_GMA500) += gma500/
+-obj-$(CONFIG_DRM_UDL) += udl/
+ obj-$(CONFIG_DRM_AST) += ast/
+ obj-y			+= i2c/
Signature · 1 line
1.7.11.4
#0 lore raw

PATCH 1/5 compat-drivers: Use case instead of if/if/.. blocks

case is much cleaner both for reading and for extending.

---
 scripts/admin-update.sh | 71 ++++++++++++++++++++++++++-----------------------
 1 file changed, 37 insertions(+), 34 deletions(-)
scripts/admin-update.sh +37 -34
index 22365cd..69b5287 100755
@@ -205,41 +205,44 @@ if [ $# -ge 1 ]; then
 		usage $0
 		exit
 	fi
-	if [[ $1 = "-h" || $1 = "--help" ]]; then
-		usage $0
-		exit
-	fi
 	while [ $# -ne 0 ]; do
-		if [[ "$1" = "-s" ]]; then
-			GET_STABLE_PENDING="y"
-			EXTRA_PATCHES="${EXTRA_PATCHES} pending-stable" 
-			EXTRA_PATCHES="${EXTRA_PATCHES} pending-stable/backports/"
-			POSTFIX_RELEASE_TAG="${POSTFIX_RELEASE_TAG}s"
-			shift; continue;
-		fi
-		if [[ "$1" = "-n" ]]; then
-			EXTRA_PATCHES="${EXTRA_PATCHES} linux-next-cherry-picks"
-			POSTFIX_RELEASE_TAG="${POSTFIX_RELEASE_TAG}n"
-			shift; continue;
-		fi
-		if [[ "$1" = "-p" ]]; then
-			EXTRA_PATCHES="${EXTRA_PATCHES} linux-next-pending"
-			POSTFIX_RELEASE_TAG="${POSTFIX_RELEASE_TAG}p"
-			shift; continue;
-		fi
-		if [[ "$1" = "-c" ]]; then
-			EXTRA_PATCHES="${EXTRA_PATCHES} crap"
-			POSTFIX_RELEASE_TAG="${POSTFIX_RELEASE_TAG}c"
-			shift; continue;
-		fi
-		if [[ "$1" = "refresh" ]]; then
-			REFRESH="y"
-			shift; continue;
-		fi
-
-		echo "Unexpected argument passed: $1"
-		usage $0
-		exit
+		case $1 in
+			"-s")
+				GET_STABLE_PENDING="y"
+				EXTRA_PATCHES="${EXTRA_PATCHES} pending-stable"
+				EXTRA_PATCHES="${EXTRA_PATCHES} pending-stable/backports/"
+				POSTFIX_RELEASE_TAG="${POSTFIX_RELEASE_TAG}s"
+				shift
+				;;
+			"-n")
+				EXTRA_PATCHES="${EXTRA_PATCHES} linux-next-cherry-picks"
+				POSTFIX_RELEASE_TAG="${POSTFIX_RELEASE_TAG}n"
+				shift
+				;;
+			"-p")
+				EXTRA_PATCHES="${EXTRA_PATCHES} linux-next-pending"
+				POSTFIX_RELEASE_TAG="${POSTFIX_RELEASE_TAG}p"
+				shift
+				;;
+			"-c")
+				EXTRA_PATCHES="${EXTRA_PATCHES} crap"
+				POSTFIX_RELEASE_TAG="${POSTFIX_RELEASE_TAG}c"
+				shift
+				;;
+			"refresh")
+				REFRESH="y"
+				shift
+				;;
+			"-h" | "--help")
+				usage $0
+				exit
+				;;
+			*)
+				echo "Unexpected argument passed: $1"
+				usage $0
+				exit
+				;;
+		esac
 	done
 
 fi
Signature · 1 line
1.7.11.4
#1 lore raw

PATCH 2/5 compat-drivers: Add ability to select drivers to fetch

Add a last command line parameter to define which subsystems will be fetched into the tree.

Currently the script supports network and/or drm keywords as the last argument.

network is currently enabled by default to retain compatibility with the previous compat-wireless tree.

Move around code and use the previously added 2 helper functions to copy files/folders conditionally, according to the values of ENABLE_NETWORK (and ENABLE_DRM which will follow).

---
 scripts/admin-update.sh | 378 +++++++++++++++++++++---------------------------
 1 file changed, 163 insertions(+), 215 deletions(-)
scripts/admin-update.sh +163 -215
index 69b5287..fe52419 100755
@@ -74,7 +74,8 @@ patchRefresh() {
 # usage() function
 ###
 usage() {
-	printf "Usage: $0 [refresh] [ --help | -h | -s | -n | -p | -c ]\n"
+	printf "Usage: $0 [refresh] [ --help | -h | -s | -n | -p | -c ] [subsystems]
+       where subsystems can be network, drm or both. Network is enabled by default.\n\n"
 
 	printf "${GREEN}%10s${NORMAL} - Update all your patch offsets using quilt\n" "refresh"
 	printf "${GREEN}%10s${NORMAL} - Get and apply pending-stable/ fixes purging old files there\n" "-s"
@@ -186,22 +187,29 @@ copyDirectories() {
 #
 # Release tags (with corresponding cmdline switches):
 # ---------------------------------------------------
-# 	s: Include pending-stable/*.patch		(-s)
-# 	n: Include linux-next-cherry-picks/*.patch	(-n)
-# 	p: Include linux-next-pending/*.patch		(-p)
-# 	c: Include crap/*.patch				(-c)
-# Note that the patches under patches/ are applied by default.
+# 	s: Include pending-stable/ patches		(-s)
+# 	n: Include linux-next-cherry-picks/ patches	(-n)
+# 	p: Include linux-next-pending/ patches		(-p)
+# 	c: Include crap/ patches			(-c)
+# Note that the patches under patches/{subsystem} are applied by default.
 #
 # If "refresh" is given as a cmdline argument, the script
 # uses quilt to refresh the patches. This is useful if patches
 # can not be applied correctly after a code update in $GIT_URL.
+#
+# A final parameter drm, wlan or both determines which subsystem
+# drivers will be fetched in from the GIT repository. To retain
+# compatibility with compat-wireless, wlan/bt/eth drivers are
+# fetched in by default.
+ENABLE_NETWORK=1
+ENABLE_DRM=0
 
 EXTRA_PATCHES="patches"
 REFRESH="n"
 GET_STABLE_PENDING="n"
 POSTFIX_RELEASE_TAG=""
 if [ $# -ge 1 ]; then
-	if [ $# -gt 4 ]; then
+	if [ $# -gt 6 ]; then
 		usage $0
 		exit
 	fi
@@ -233,6 +241,14 @@ if [ $# -ge 1 ]; then
 				REFRESH="y"
 				shift
 				;;
+			"network")
+				ENABLE_NETWORK=1
+				shift
+				;;
+			"drm")
+				ENABLE_DRM=1
+				shift
+				;;
 			"-h" | "--help")
 				usage $0
 				exit
@@ -298,27 +314,27 @@ INCLUDE_NET_BT="hci_core.h
 		smp.h
 		a2mp.h"
 
-# Bluetooth related directories
-NET_BT_DIRS="bluetooth
-	     bluetooth/bnep
-	     bluetooth/cmtp
-	     bluetooth/rfcomm
-	     bluetooth/hidp"
-
-# Required headers from include/linux
-INCLUDE_LINUX="ieee80211.h
-	       nl80211.h
-	       pci_ids.h
-	       eeprom_93cx6.h
-	       ath9k_platform.h
-	       wl12xx.h
-	       rndis.h"
+# Required wlan headers from include/linux
+INCLUDE_LINUX_WLAN="ieee80211.h
+		    nl80211.h
+		    pci_ids.h
+		    eeprom_93cx6.h
+		    ath9k_platform.h
+		    wl12xx.h
+		    rndis.h"
 
 # For rndis_wext
-INCLUDE_LINUX_USB="usbnet.h
-		   rndis_host.h"
+INCLUDE_LINUX_USB_WLAN="usbnet.h
+		        rndis_host.h"
 
-INCLUDE_LINUX_SPI="libertas_spi.h"
+# For rndis_wlan, we need a new rndis_host.ko, cdc_ether.ko and usbnet.ko
+RNDIS_REQUIREMENTS="Makefile
+		    rndis_host.c
+		    cdc_ether.c
+		    usbnet.c"
+
+# For libertas driver
+INCLUDE_LINUX_LIBERTAS_WLAN="libertas_spi.h"
 
 # 802.11 related headers
 INCLUDE_NET="cfg80211.h
@@ -328,178 +344,142 @@ INCLUDE_NET="cfg80211.h
 	     mac80211.h
 	     regulatory.h"
 
-NET_DIRS="wireless
-	  mac80211
-	  rfkill"
+# Network related directories
+NET_WLAN_DIRS="net/wireless
+	       net/mac80211
+	       net/rfkill"
+
+# Bluetooth related directories
+NET_BT_DIRS="net/bluetooth
+	     net/bluetooth/bnep
+	     net/bluetooth/cmtp
+	     net/bluetooth/rfcomm
+	     net/bluetooth/hidp"
 
 # Drivers that have their own directory
-DRIVERS="drivers/net/wireless/ath
-	 drivers/net/wireless/ath/carl9170
-	 drivers/net/wireless/ath/ath5k
-	 drivers/net/wireless/ath/ath6kl
-	 drivers/net/wireless/ath/ath9k
-	 drivers/ssb
-	 drivers/bcma
-	 drivers/net/wireless/b43
-	 drivers/net/wireless/b43legacy
-	 drivers/net/wireless/brcm80211
-	 drivers/net/wireless/brcm80211/brcmfmac
-	 drivers/net/wireless/brcm80211/brcmsmac
-	 drivers/net/wireless/brcm80211/brcmsmac/phy
-	 drivers/net/wireless/brcm80211/brcmutil
-	 drivers/net/wireless/brcm80211/include
-	 drivers/net/wireless/iwlegacy
-	 drivers/net/wireless/iwlwifi
-	 drivers/net/wireless/iwlwifi/pcie
-	 drivers/net/wireless/iwlwifi/dvm
-	 drivers/net/wireless/rt2x00
-	 drivers/net/wireless/zd1211rw
-	 drivers/net/wireless/libertas
-	 drivers/net/wireless/p54
-	 drivers/net/wireless/rtl818x
-	 drivers/net/wireless/rtl818x/rtl8180
-	 drivers/net/wireless/rtl818x/rtl8187
-	 drivers/net/wireless/rtlwifi
-	 drivers/net/wireless/rtlwifi/rtl8192c
-	 drivers/net/wireless/rtlwifi/rtl8192ce
-	 drivers/net/wireless/rtlwifi/rtl8192cu
-	 drivers/net/wireless/rtlwifi/rtl8192se
-	 drivers/net/wireless/rtlwifi/rtl8192de
-	 drivers/net/wireless/libertas_tf
-	 drivers/net/wireless/ipw2x00
-	 drivers/net/wireless/ti
-	 drivers/net/wireless/ti/wl12xx
-	 drivers/net/wireless/ti/wl1251
-	 drivers/net/wireless/ti/wlcore
-	 drivers/net/wireless/ti/wl18xx
-	 drivers/net/wireless/orinoco
-	 drivers/net/wireless/mwifiex"
+DRIVERS_WLAN="drivers/net/wireless/ath
+	      drivers/net/wireless/ath/carl9170
+	      drivers/net/wireless/ath/ath5k
+	      drivers/net/wireless/ath/ath6kl
+	      drivers/net/wireless/ath/ath9k
+	      drivers/ssb
+	      drivers/bcma
+	      drivers/net/wireless/b43
+	      drivers/net/wireless/b43legacy
+	      drivers/net/wireless/brcm80211
+	      drivers/net/wireless/brcm80211/brcmfmac
+	      drivers/net/wireless/brcm80211/brcmsmac
+	      drivers/net/wireless/brcm80211/brcmsmac/phy
+	      drivers/net/wireless/brcm80211/brcmutil
+	      drivers/net/wireless/brcm80211/include
+	      drivers/net/wireless/iwlegacy
+	      drivers/net/wireless/iwlwifi
+	      drivers/net/wireless/iwlwifi/pcie
+	      drivers/net/wireless/iwlwifi/dvm
+	      drivers/net/wireless/rt2x00
+	      drivers/net/wireless/zd1211rw
+	      drivers/net/wireless/libertas
+	      drivers/net/wireless/p54
+	      drivers/net/wireless/rtl818x
+	      drivers/net/wireless/rtl818x/rtl8180
+	      drivers/net/wireless/rtl818x/rtl8187
+	      drivers/net/wireless/rtlwifi
+	      drivers/net/wireless/rtlwifi/rtl8192c
+	      drivers/net/wireless/rtlwifi/rtl8192ce
+	      drivers/net/wireless/rtlwifi/rtl8192cu
+	      drivers/net/wireless/rtlwifi/rtl8192se
+	      drivers/net/wireless/rtlwifi/rtl8192de
+	      drivers/net/wireless/libertas_tf
+	      drivers/net/wireless/ipw2x00
+	      drivers/net/wireless/ti
+	      drivers/net/wireless/ti/wl12xx
+	      drivers/net/wireless/ti/wl1251
+	      drivers/net/wireless/ti/wlcore
+	      drivers/net/wireless/ti/wl18xx
+	      drivers/net/wireless/orinoco
+	      drivers/net/wireless/mwifiex"
 
 # Staging drivers
 STAGING_DRIVERS=""
 
-# Ethernet drivers
-DRIVERS="$DRIVERS drivers/net/ethernet/atheros"
-DRIVERS="$DRIVERS drivers/net/ethernet/atheros/atl1c"
-DRIVERS="$DRIVERS drivers/net/ethernet/atheros/atl1e"
-DRIVERS="$DRIVERS drivers/net/ethernet/atheros/atlx"
-DRIVERS="$DRIVERS drivers/net/ethernet/atheros/alx"
+# Ethernet drivers having their own directory
+DRIVERS_ETH="drivers/net/ethernet/atheros
+	     drivers/net/ethernet/atheros/atl1c
+	     drivers/net/ethernet/atheros/atl1e
+	     drivers/net/ethernet/atheros/atlx
+	     drivers/net/ethernet/atheros/alx"
 
 # Bluetooth drivers
 DRIVERS_BT="drivers/bluetooth"
 
 # Drivers that belong the the wireless directory
-DRIVER_FILES="adm8211.c
-	      adm8211.h
-	      at76c50x-usb.c
-	      at76c50x-usb.h
-	      mac80211_hwsim.c
-	      mac80211_hwsim.h
-	      mwl8k.c
-	      rndis_wlan.c"
+DRIVERS_WLAN_FILES="adm8211.c
+		    adm8211.h
+		    at76c50x-usb.c
+		    at76c50x-usb.h
+		    mac80211_hwsim.c
+		    mac80211_hwsim.h
+		    mwl8k.c
+		    rndis_wlan.c"
 
 rm -rf drivers/
 
-mkdir -p include/linux/ \
-	include/net/ \
-	include/net/bluetooth \
-	include/linux/usb \
-	include/linux/unaligned \
-	include/linux/spi \
-	include/trace \
-	include/pcmcia \
-	include/crypto \
-	net/mac80211/ \
-	net/wireless/ \
-	net/rfkill/ \
-	drivers/ssb/ \
-	drivers/bcma/ \
-	drivers/net/usb/ \
-	drivers/net/wireless/ \
-	drivers/net/ethernet/atheros \
-	drivers/net/ethernet/broadcom
-
-# include/linux
-DIR="include/linux"
-for i in $INCLUDE_LINUX; do
-	echo "Copying $GIT_TREE/$DIR/$i"
-	cp "$GIT_TREE/$DIR/$i" $DIR/
-done
-
-cp -a $GIT_TREE/include/linux/ssb include/linux/
-cp -a $GIT_TREE/include/linux/bcma include/linux/
-cp -a $GIT_TREE/include/linux/rfkill.h include/linux/rfkill_backport.h
-
-# include/net
-DIR="include/net"
-for i in $INCLUDE_NET; do
-	echo "Copying $GIT_TREE/$DIR/$i"
-	cp "$GIT_TREE/$DIR/$i" $DIR/
-done
-
-DIR="include/net/bluetooth"
-for i in $INCLUDE_NET_BT; do
-  echo "Copying $GIT_TREE/$DIR/$i"
-  cp $GIT_TREE/$DIR/$i $DIR/
-done
-
-DIR="include/linux/usb"
-for i in $INCLUDE_LINUX_USB; do
-	echo "Copying $GIT_TREE/$DIR/$i"
-	cp $GIT_TREE/$DIR/$i $DIR/
-done
-
-DIR="include/linux/spi"
-for i in $INCLUDE_LINUX_SPI; do
-	echo "Copying $GIT_TREE/$DIR/$i"
-	cp $GIT_TREE/$DIR/$i $DIR/
-done
-
-# net/wireless and net/mac80211
-for i in $NET_DIRS; do
-	echo "Copying $GIT_TREE/net/$i/*.[ch]"
-	cp $GIT_TREE/net/$i/*.[ch] net/$i/
-	cp $GIT_TREE/net/$i/Makefile net/$i/
-	cp $GIT_TREE/net/$i/Kconfig net/$i/
-done
-
-cp $GIT_TREE/MAINTAINERS ./
-
-# Copy files needed for statically compiled regulatory rules database
-cp $GIT_TREE/net/wireless/db.txt net/wireless/
-cp $GIT_TREE/net/wireless/genregdb.awk net/wireless/
-
-# net/bluetooth
-for i in $NET_BT_DIRS; do
-	mkdir -p net/$i
-	echo "Copying $GIT_TREE/net/$i/*.[ch]"
-	cp $GIT_TREE/net/$i/*.[ch] net/$i/
-	cp $GIT_TREE/net/$i/Makefile net/$i/
-done
-
-# Drivers in their own directory
-for i in $DRIVERS; do
-	mkdir -p $i
-
-	# -print -quit will just print once, so we don't burden
-	# this script with searching for further files if one is
-	# found
-	FILES_FOUND=$(find $GIT_TREE/$i/ -maxdepth 1 -type f -name \*.[ch] -print -quit | wc -l)
-	if [ $FILES_FOUND -eq 1 ]; then
-		echo "Copying $GIT_TREE/$i/*.[ch]"
-		cp $GIT_TREE/$i/*.[ch] $i/
-	fi
-	if [ -f $GIT_TREE/$i/Makefile ]; then
-		cp $GIT_TREE/$i/Makefile $i/
-	fi
-	if [ -f $GIT_TREE/$i/Kconfig ]; then
-		cp $GIT_TREE/$i/Kconfig $i/
-	fi
-done
+mkdir -p include/net/bluetooth \
+	 include/linux/usb \
+	 include/linux/unaligned \
+	 include/linux/spi \
+	 include/trace \
+	 include/pcmcia \
+	 include/crypto \
+	 drivers/bcma \
+	 drivers/misc/eeprom \
+	 drivers/net/usb \
+	 drivers/net/ethernet/broadcom \
+	 drivers/ssb \
+	 drivers/staging \
+	 $NET_WLAN_DIRS \
+	 $NET_BT_DIRS \
+	 $DRIVERS_WLAN \
+	 $DRIVERS_ETH \
+	 $DRIVERS_BT
+
+if [[ "$ENABLE_NETWORK" == "1" ]]; then
+	# WLAN and bluetooth files
+	copyFiles "$INCLUDE_LINUX_WLAN"			"include/linux"
+	copyFiles "$INCLUDE_NET"			"include/net"
+	copyFiles "$INCLUDE_NET_BT" 			"include/net/bluetooth"
+	copyFiles "$INCLUDE_LINUX_USB_WLAN"		"include/linux/usb"
+	copyFiles "$INCLUDE_LINUX_LIBERTAS_WLAN"	"include/linux/spi"
+	copyFiles "$DRIVERS_WLAN_FILES"			"drivers/net/wireless"
+	copyFiles "$RNDIS_REQUIREMENTS"			"drivers/net/usb"
+
+	copyDirectories "$NET_WLAN_DIRS"
+	copyDirectories "$NET_BT_DIRS"
+	copyDirectories "$DRIVERS_BT"
+	copyDirectories "$DRIVERS_WLAN"
+	copyDirectories "$DRIVERS_ETH"
+
+	cp -a $GIT_TREE/include/linux/ssb include/linux/
+	cp -a $GIT_TREE/include/linux/bcma include/linux/
+	cp -a $GIT_TREE/include/linux/rfkill.h include/linux/rfkill_backport.h
+
+	# Misc
+	cp $GIT_TREE/drivers/misc/eeprom/{Makefile,eeprom_93cx6.c} drivers/misc/eeprom/
+
+	# Copy files needed for statically compiled regulatory rules database
+	cp $GIT_TREE/net/wireless/{db.txt,genregdb.awk} net/wireless/
+
+	# Top level wireless driver Makefile
+	cp $GIT_TREE/drivers/net/wireless/Makefile drivers/net/wireless
+
+	# Broadcom case
+	DIR="drivers/net/ethernet/broadcom"
+	cp $GIT_TREE/$DIR/b44.[ch] drivers/net/ethernet/broadcom
+	# Not yet
+	echo "obj-\$(CONFIG_B44) += b44.o" > drivers/net/ethernet/broadcom/Makefile
+fi
 
 # Staging drivers in their own directory
-rm -rf drivers/staging/
-mkdir -p drivers/staging/
 for i in $STAGING_DRIVERS; do
 	if [ ! -d $GIT_TREE/$i ]; then
 		continue
@@ -510,40 +490,8 @@ for i in $STAGING_DRIVERS; do
 	cp -a $GIT_TREE/$i drivers/staging/
 done
 
-for i in $DRIVERS_BT; do
-	mkdir -p $i
-	echo "Copying $GIT_TREE/$i/*.[ch]"
-	cp $GIT_TREE/$i/*.[ch] $i/
-	cp $GIT_TREE/$i/Makefile $i/
-done
-
-# For rndis_wlan, we need a new rndis_host.ko, cdc_ether.ko and usbnet.ko
-RNDIS_REQS="Makefile rndis_host.c cdc_ether.c usbnet.c"
-DIR="drivers/net/usb"
-for i in $RNDIS_REQS; do
-	echo "Copying $GIT_TREE/$DIR/$i"
-	cp $GIT_TREE/$DIR/$i $DIR/
-done
-
-DIR="drivers/net/ethernet/broadcom"
-echo > $DIR/Makefile
-cp $GIT_TREE/$DIR/b44.[ch] $DIR
-# Not yet
-echo "obj-\$(CONFIG_B44) += b44.o" >> $DIR/Makefile
-
-# Misc
-mkdir -p drivers/misc/eeprom/
-cp $GIT_TREE/drivers/misc/eeprom/eeprom_93cx6.c drivers/misc/eeprom/
-cp $GIT_TREE/drivers/misc/eeprom/Makefile drivers/misc/eeprom/
-
-DIR="drivers/net/wireless"
-# Drivers part of the wireless directory
-for i in $DRIVER_FILES; do
-	cp $GIT_TREE/$DIR/$i $DIR/
-done
-
-# Top level wireless driver Makefile
-cp $GIT_TREE/$DIR/Makefile $DIR
+# Finally copy MAINTAINERS file
+cp $GIT_TREE/MAINTAINERS ./
 
 # Compat stuff
 COMPAT="compat"
Signature · 1 line
1.7.11.4
#2 lore raw

PATCH 3/5 compat-drivers: Fetch in DRM drivers

In reply to Ozan Çağlayan

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.

---
 scripts/admin-update.sh | 42 +++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 41 insertions(+), 1 deletion(-)
scripts/admin-update.sh +41 -1
index fe52419..0fa46c2 100755
@@ -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
Signature · 1 line
1.7.11.4
#5 lore raw

Re: [PATCH 5/5] compat-drivers: Add DRM patches

In reply to Ozan Çağlayan

On Tue, Aug 21, 2012 at 8:34 PM, Ozan =C3=87a=C4=9Flayan <[email protected]=

Quoted 7 lines

wrote:
These patches are part of the GSoC project for backporting the DRM drivers onto older kernels.

Merge them into the compat-drivers tree.

Awesome work, this is really great stuff. I applied and pushed all of them. Also I updated the patches to synch against next-20120822. I'll kick off a ckmake test build in a bit.

Luis

#6 lore raw

Re: [PATCH 5/5] compat-drivers: Add DRM patches

Quoted 17 lines

Awesome work, this is really great stuff. I applied and pushed all of them. Also I updated the patches to synch agai

Quoted 6 lines · Ozan Çağlayan

These patches are part of the GSoC project for backporting the DRM drivers onto older kernels.

Merge them into the compat-drivers tree.

Awesome work, this is really great stuff. I applied and pushed all of them. Also I updated the patches to synch against next-20120822. I'll kick off a ckmake test build in a bit.

Luis