]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - debian/scripts/sub-flavour
5 echo "SUB_PROCESS $FROM => $TO"
7 export from_pkg
="linux-image-$ABI_RELEASE-$FROM"
8 export to_pkg
="linux-image-$ABI_RELEASE-$TO"
10 from_moddir
="debian/$from_pkg/lib/modules/$ABI_RELEASE-$FROM"
11 to_moddir
="debian/$to_pkg/lib/modules/$ABI_RELEASE-$FROM"
13 install -d "debian/$to_pkg/boot"
14 install -m644 debian
/$from_pkg/boot
/config-
$ABI_RELEASE-$FROM \
16 install -m600 debian
/$from_pkg/boot
/{vmlinuz
,System.map
}-$ABI_RELEASE-$FROM \
20 # Print some warnings if there are files in the sub-flavours list
21 # that do not actually exist.
23 cat ${DEBIAN}/sub-flavours
/$TO.list |
while read line
26 cd debian
/$from_pkg/lib
/modules
/$ABI_RELEASE-$FROM/kernel
;
28 # If its a wildcard, then check that there are files that match.
30 if echo "$line" |
grep '\*' > /dev
/null
32 if [ `eval find "$line" -name '*.ko' 2>/dev/null|wc -l` -lt 1 ]
34 echo SUB_INST Warning
- No files
in $line
37 # Else it should be a single file reference.
41 echo SUB_INST Warning
- could not
find "$line"
46 cat ${DEBIAN}/sub-flavours
/$TO.list |
while read line
; do
48 cd debian
/$from_pkg/lib
/modules
/$ABI_RELEASE-$FROM/kernel
;
49 if echo "$line" |
grep '\*' > /dev
/null
51 eval find "$line" -name '*.ko' 2>/dev
/null || true
57 done |
while read mod
; do
58 echo "SUB_INST checking: $mod"
59 fromdir
="/lib/modules/$ABI_RELEASE-$FROM/"
60 egrep "^($fromdir)?kernel/$mod:" \
61 $from_moddir/modules.dep |
sed -e "s|^$fromdir||" -e 's/://' -e 's/ /\n/g' | \
64 test -f debian
/$to_pkg/$m && continue
65 echo "SUB_INST installing: $m"
66 install -D -m644 debian
/$from_pkg/$m \