First check in
This commit is contained in:
90
Makefile
Normal file
90
Makefile
Normal file
@@ -0,0 +1,90 @@
|
|||||||
|
# This file is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License version 2 as
|
||||||
|
# published by the Free Software Foundation here:
|
||||||
|
# (http://www.gnu.org/licenses/gpl-2.0.html)
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
DEPENDS =
|
||||||
|
ARCH = x86_64
|
||||||
|
URL = https://www.kernel.org/
|
||||||
|
DESC = Linux is a clone of the operating system Unix, written from scratch \
|
||||||
|
by Linus Torvalds with assistance from a loosely-knit team of hackers \
|
||||||
|
across the Net.
|
||||||
|
SNAPVER = sr0
|
||||||
|
|
||||||
|
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
||||||
|
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
||||||
|
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
|
||||||
|
PATCHDIR := $(PWD)/SRC/patches
|
||||||
|
KERNVER := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')
|
||||||
|
VERSION := $(SNAPVER)
|
||||||
|
|
||||||
|
MAKE = make
|
||||||
|
MAKEINST = make install
|
||||||
|
|
||||||
|
include /usr/share/snap/Makefile.snaplinux
|
||||||
|
|
||||||
|
$(SRCDIR)/Makefile: $(ARCHIVE)
|
||||||
|
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
||||||
|
tar -jxf $(ARCHIVE); \
|
||||||
|
elif [ '$(TYPE)' == 'application/x-gzip' ]; then \
|
||||||
|
tar -zxf $(ARCHIVE); \
|
||||||
|
elif [ '$(TYPE)' == 'application/x-tar' ]; then \
|
||||||
|
tar -xf $(ARCHIVE); \
|
||||||
|
elif [ '$(TYPE)' == 'application/x-xz' ]; then \
|
||||||
|
tar -xf $(ARCHIVE); \
|
||||||
|
else \
|
||||||
|
echo 'Unable to determine archive type'; \
|
||||||
|
exit 1; \
|
||||||
|
fi
|
||||||
|
@touch $(SRCDIR)/Makefile
|
||||||
|
|
||||||
|
$(SRCDIR)/arch/x86_64/boot/bzImage: $(SRCDIR)/Makefile
|
||||||
|
@cd $(SRCDIR); \
|
||||||
|
make mrproper
|
||||||
|
@cp SNAP/config-$(KERNVER)-$(VERSION) $(SRCDIR)/.config
|
||||||
|
@cd $(SRCDIR); \
|
||||||
|
make
|
||||||
|
|
||||||
|
$(ROOT): $(SRCDIR)/arch/x86_64/boot/bzImage
|
||||||
|
@if [ -d $(ROOT) ]; then \
|
||||||
|
touch $(ROOT); \
|
||||||
|
else \
|
||||||
|
mkdir -v $(ROOT); \
|
||||||
|
fi
|
||||||
|
|
||||||
|
@cd $(SRCDIR); \
|
||||||
|
make modules_install INSTALL_MOD_PATH=$(ROOT) && \
|
||||||
|
make headers_install INSTALL_HDR_PATH=$(ROOT)/usr && \
|
||||||
|
install -d -m 755 $(ROOT)/boot && \
|
||||||
|
install -d -m 755 $(ROOT)/etc/modprobe.d && \
|
||||||
|
install -d -m 755 $(ROOT)/usr/share/doc/linux && \
|
||||||
|
install -m 644 .config $(ROOT)/boot/config-$(KERNVER)-$(VERSION) && \
|
||||||
|
install -m 644 System.map \
|
||||||
|
$(ROOT)/boot/System.map-$(KERNVER)-$(VERSION) && \
|
||||||
|
install -m 644 arch/x86_64/boot/bzImage \
|
||||||
|
$(ROOT)/boot/vmlinuz-$(KERNVER)-$(VERSION) && \
|
||||||
|
install -m 644 ../SNAP/usb.conf $(ROOT)/etc/modprobe.d/usb.conf && \
|
||||||
|
cd Documentation; for thing in `find`; do \
|
||||||
|
if [ -d $$thing ]; then \
|
||||||
|
install -d -m 755 $(ROOT)/usr/share/doc/linux/$$thing; \
|
||||||
|
else \
|
||||||
|
install -m 644 $$thing $(ROOT)/usr/share/doc/linux; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
test: $(ROOT)
|
||||||
|
@cd $(SRCDIR); \
|
||||||
|
make test
|
||||||
|
|
||||||
|
clean:
|
||||||
|
@rm -rvf $(ROOT) \
|
||||||
|
$(SNAPINFO) \
|
||||||
|
$(MANIFEST) \
|
||||||
|
$(FILES) \
|
||||||
|
$(SRCDIR)
|
||||||
|
|
||||||
3
SNAP/README
Normal file
3
SNAP/README
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
This is the directory where the manifest, snapinfo, and files.tar.gz
|
||||||
|
files will be created. It is also where the usher file should be
|
||||||
|
placed if it is required by the package.
|
||||||
6790
SNAP/config-3.16.37-sr0
Normal file
6790
SNAP/config-3.16.37-sr0
Normal file
File diff suppressed because it is too large
Load Diff
2
SNAP/usb.conf
Normal file
2
SNAP/usb.conf
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
install ohci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i ohci_hcd ; true
|
||||||
|
install uhci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i uhci_hcd ; true
|
||||||
18
SNAP/usher
Executable file
18
SNAP/usher
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
preinst)
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
postinst)
|
||||||
|
mkinitramfs
|
||||||
|
;;
|
||||||
|
prerm)
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
postrm)
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
16
SRC/linux-3.16.37.tar.sign
Normal file
16
SRC/linux-3.16.37.tar.sign
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
|
iQIcBAABCAAGBQJXvE5CAAoJEDjbvchgkmk+NP4P/0Nijs/NCGWR+rx0GRNyHAvE
|
||||||
|
6YBEmBZ4MDNnlqqzcP6r2MO80Ms4kwpvWd7vU4C+S1jwYIZgoVWwMmBcbxMcg+ov
|
||||||
|
0Y9mRyQcz1Xlm5tLf/xT0S5oZrt47X7qt7nvKGQvdgnbK3n8DIHnmda0nLGGwHp4
|
||||||
|
NX6JS5AjxGco5VO0fBXa8Zgfn6zx6Zgt7z4QuZ+UbYJMmbvOKOZ+hddwCLwcIrWL
|
||||||
|
LiZdBhDz25sDleDxI+3SRekD25yHBgsJeKecaNyuO2gzbaNFPUd7GKqswNAzvlR3
|
||||||
|
9gnjFFQTxBqO8ONCQIzHaBmLQ5ov7XohkNldFCS0wVMQMMbYj4ZaboKVZo0ynciN
|
||||||
|
TmRBnP2Yn8ARZaNr8tlK9YHgRu+ZiiUtChDEzbyUQSaPBQlEYgLAiAG0GmJZc6kG
|
||||||
|
xRBaRuovvzKQEkG8JMrl0A9iVXFQm3P3qH+3+Jk4cHAcje3iXc+Yhns2/+F/rgKX
|
||||||
|
K9c12/Nw74PKkrBM/+JVi4RTS/jS3Du69K95nW34+eDs25E6GhlG9nDa65BtokH6
|
||||||
|
pqdKnyZWaEf8WOCwEEvU0vTFguYnegsrEXb4OD9ZZKpMwTwxzS4SxjLeWO3HdY1S
|
||||||
|
LMBovJMFD7fGb/CK2niBgWADZ1dU9B5YLFmlgAptNVnzPU95RkbJd9bBvIol1vf/
|
||||||
|
Mk5N5vP1xH+d3L2w45nm
|
||||||
|
=m5Ly
|
||||||
|
-----END PGP SIGNATURE-----
|
||||||
BIN
SRC/linux-3.16.37.tar.xz
Normal file
BIN
SRC/linux-3.16.37.tar.xz
Normal file
Binary file not shown.
2
SRC/patches/README
Normal file
2
SRC/patches/README
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
Place any patch files here and preface each with a number indicating
|
||||||
|
the order of execution. Patch files are expected to use a .patch extension.
|
||||||
Reference in New Issue
Block a user