* updated blueman (2.3.5 -> 2.4.3)
[t2sde.git] / architecture / avr32 / package / linux / top-level-kmod.patch
blobd3d2c60b33656da08e4dd342f8ec79cd0da3d690
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: architecture/avr32/package/*/top-level-kmod.patch
3 # Copyright (C) 2023 - 2024 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 Having all all in-kernel modules in one top-level kernel/ directory
15 is a bit superflous. Let's just install all sub-systems into the
16 top-level directory to shorten all the pathes for readability.
18 --- linux-4.9/Makefile.vanilla 2024-02-06 14:36:55.709224668 +0100
19 +++ linux-4.9/Makefile 2024-02-06 14:49:42.520285930 +0100
20 @@ -1272,9 +1272,9 @@
22 PHONY += _modinst_
23 _modinst_:
24 - @rm -rf $(MODLIB)/kernel
25 + @rm -rf $(MODLIB)
26 @rm -f $(MODLIB)/source
27 - @mkdir -p $(MODLIB)/kernel
28 + @mkdir -p $(MODLIB)
29 @ln -s `cd $(srctree) && /bin/pwd` $(MODLIB)/source
30 @if [ ! $(objtree) -ef $(MODLIB)/build ]; then \
31 rm -f $(MODLIB)/build ; \
32 --- linux-4.9/scripts/Makefile.modinst.vanilla 2024-02-06 14:33:39.070208958 +0100
33 +++ linux-4.9/scripts/Makefile.modinst 2024-02-06 14:33:57.874210460 +0100
34 @@ -29,7 +29,7 @@
35 INSTALL_MOD_DIR ?= extra
36 ext-mod-dir = $(INSTALL_MOD_DIR)$(subst $(patsubst %/,%,$(KBUILD_EXTMOD)),,$(@D))
38 -modinst_dir = $(if $(KBUILD_EXTMOD),$(ext-mod-dir),kernel/$(@D))
39 +modinst_dir = $(if $(KBUILD_EXTMOD),$(ext-mod-dir),$(@D))
41 $(modules):
42 $(call cmd,modules_install,$(MODLIB)/$(modinst_dir))