From f0fc28f87722f89bfdcf9957af2e8df42be14c46 Mon Sep 17 00:00:00 2001 From: SolidHal Date: Thu, 11 Oct 2018 15:09:25 -0500 Subject: [PATCH] Added copyright notices, small patches, openvpn support --- AUTHORS | 2 +- makefile | 15 +++++++++++++ resources/BuildResources/config | 21 ++++++++++++++++++- ...DTSI-rk3288-Add-missing-SPI2-pinctrl.patch | 0 ...3288-Adding-cells-addresses-and-size.patch | 0 scripts/InstallScripts/InstallPackages.sh | 2 +- scripts/InstallScripts/InstallToInternal.sh | 15 +++++++++++++ scripts/buildDebianFs.sh | 20 ++++++++++++++++-- scripts/buildKernel.sh | 16 ++++++++++++++ scripts/buildNewKernelIntoFS.sh | 14 +++++++++++++ scripts/crossmenuconfig.sh | 16 ++++++++++++++ 11 files changed, 116 insertions(+), 5 deletions(-) rename resources/BuildResources/{patches-untested => patches-tested}/DTS/0007-RK3288-DTSI-rk3288-Add-missing-SPI2-pinctrl.patch (100%) rename resources/BuildResources/{patches-untested => patches-tested}/DTS/0009-ARM-DTSI-rk3288-Adding-cells-addresses-and-size.patch (100%) diff --git a/AUTHORS b/AUTHORS index 6c54952..288090c 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,4 +1,4 @@ SolidHal (hal@halemmerich.com) With spcial thanks to: Dima Krasner (dima@dimakrasner.com) -- The core of filesystem and kernel building for the c201 is based on his work with devsus \ No newline at end of file +- The core concepts of filesystem and kernel building for the c201 are based on his work with devsus \ No newline at end of file diff --git a/makefile b/makefile index b111ce7..f87b128 100644 --- a/makefile +++ b/makefile @@ -1,3 +1,18 @@ +# This file is part of PrawnOS (http://www.prawnos.com) +# Copyright (c) 2018 Hal Emmerich + +# PrawnOS 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. + +# PrawnOS 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. + +# You should have received a copy of the GNU General Public License +# along with PrawnOS. If not, see . + .PHONY: clean clean: @echo "Enter one of:" diff --git a/resources/BuildResources/config b/resources/BuildResources/config index 1815615..eb28f48 100644 --- a/resources/BuildResources/config +++ b/resources/BuildResources/config @@ -1497,7 +1497,24 @@ CONFIG_DM_INTEGRITY=y # CONFIG_FIREWIRE_NOSY is not set CONFIG_NETDEVICES=y CONFIG_MII=y -# CONFIG_NET_CORE is not set +CONFIG_NET_CORE=y +# CONFIG_BONDING is not set +# CONFIG_DUMMY is not set +# CONFIG_EQUALIZER is not set +# CONFIG_NET_FC is not set +# CONFIG_IFB is not set +# CONFIG_NET_TEAM is not set +# CONFIG_MACVLAN is not set +# CONFIG_IPVLAN is not set +# CONFIG_VXLAN is not set +# CONFIG_MACSEC is not set +# CONFIG_NETCONSOLE is not set +CONFIG_TUN=y +# CONFIG_TUN_VNET_CROSS_LE is not set +# CONFIG_VETH is not set +# CONFIG_VIRTIO_NET is not set +# CONFIG_NLMON is not set +# CONFIG_NET_VRF is not set # CONFIG_ARCNET is not set # @@ -2087,6 +2104,8 @@ CONFIG_CHARGER_GPIO=y # CONFIG_CHARGER_SMB347 is not set # CONFIG_BATTERY_GAUGE_LTC2941 is not set # CONFIG_CHARGER_RT9455 is not set +CONFIG_POWER_SEQUENCE=y +CONFIG_PWRSEQ_GENERIC=y # CONFIG_HWMON is not set CONFIG_THERMAL=y # CONFIG_THERMAL_STATISTICS is not set diff --git a/resources/BuildResources/patches-untested/DTS/0007-RK3288-DTSI-rk3288-Add-missing-SPI2-pinctrl.patch b/resources/BuildResources/patches-tested/DTS/0007-RK3288-DTSI-rk3288-Add-missing-SPI2-pinctrl.patch similarity index 100% rename from resources/BuildResources/patches-untested/DTS/0007-RK3288-DTSI-rk3288-Add-missing-SPI2-pinctrl.patch rename to resources/BuildResources/patches-tested/DTS/0007-RK3288-DTSI-rk3288-Add-missing-SPI2-pinctrl.patch diff --git a/resources/BuildResources/patches-untested/DTS/0009-ARM-DTSI-rk3288-Adding-cells-addresses-and-size.patch b/resources/BuildResources/patches-tested/DTS/0009-ARM-DTSI-rk3288-Adding-cells-addresses-and-size.patch similarity index 100% rename from resources/BuildResources/patches-untested/DTS/0009-ARM-DTSI-rk3288-Adding-cells-addresses-and-size.patch rename to resources/BuildResources/patches-tested/DTS/0009-ARM-DTSI-rk3288-Adding-cells-addresses-and-size.patch diff --git a/scripts/InstallScripts/InstallPackages.sh b/scripts/InstallScripts/InstallPackages.sh index bedf3dd..639c85f 100755 --- a/scripts/InstallScripts/InstallPackages.sh +++ b/scripts/InstallScripts/InstallPackages.sh @@ -30,7 +30,7 @@ done locale-gen #Install shared packages apt install -y xorg acpi-support lightdm tasksel dpkg librsvg2-common xorg xserver-xorg-input-libinput alsa-utils anacron avahi-daemon eject iw libnss-mdns xdg-utils xserver-xorg-input-synaptics mousepad vlc dconf-tools sudo dtrx emacs25 -apt install -y network-manager-gnome network-manager-openvpn +apt install -y network-manager-gnome network-manager-openvpn network-manager-openvpn-gnome [ "$DE" = "xfce" ] && apt install -y xfce4 dbus-user-session system-config-printer tango-icon-theme xfce4-power-manager xfce4-terminal xfce4-goodies numix-gtk-theme plank [ "$DE" = "lxqt" ] && apt install -y lxqt diff --git a/scripts/InstallScripts/InstallToInternal.sh b/scripts/InstallScripts/InstallToInternal.sh index cffe04a..41f2727 100755 --- a/scripts/InstallScripts/InstallToInternal.sh +++ b/scripts/InstallScripts/InstallToInternal.sh @@ -4,6 +4,21 @@ #and erase ALL data on it +# This file is part of PrawnOS (http://www.prawnos.com) +# Copyright (c) 2018 Hal Emmerich + +# PrawnOS 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. + +# PrawnOS 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. + +# You should have received a copy of the GNU General Public License +# along with PrawnOS. If not, see . + RESOURCES=/InstallResources read -p "This will ERASE ALL DATA ON THE INTERNAL STORAGE (EMMC) and reboot when finished, do you want to continue? [Y/n]" -n 1 -r diff --git a/scripts/buildDebianFs.sh b/scripts/buildDebianFs.sh index 4b482ba..f5955e5 100755 --- a/scripts/buildDebianFs.sh +++ b/scripts/buildDebianFs.sh @@ -3,6 +3,22 @@ # Build fs, image +# This file is part of PrawnOS (http://www.prawnos.com) +# Copyright (c) 2018 Hal Emmerich + +# PrawnOS 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. + +# PrawnOS 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. + +# You should have received a copy of the GNU General Public License +# along with PrawnOS. If not, see . + + KVER=4.17.2 #Ensure Sudo @@ -86,14 +102,14 @@ chroot $outmnt locale-gen #Install the base packages chroot $outmnt apt update -chroot $outmnt apt install -y initscripts udev kmod net-tools inetutils-ping traceroute iproute2 isc-dhcp-client wpasupplicant iw alsa-utils cgpt vim-tiny less psmisc netcat-openbsd ca-certificates bzip2 xz-utils ifupdown nano apt-utils git +chroot $outmnt apt install -y initscripts udev kmod net-tools inetutils-ping traceroute iproute2 isc-dhcp-client wpasupplicant iw alsa-utils cgpt vim-tiny less psmisc netcat-openbsd ca-certificates bzip2 xz-utils ifupdown nano apt-utils git kpartx #Cleanup to reduce install size chroot $outmnt apt-get autoremove --purge chroot $outmnt apt-get clean #Download the packages to be installed by Install.sh: -chroot $outmnt apt-get install -y -d xorg acpi-support lightdm tasksel dpkg librsvg2-common xorg xserver-xorg-input-libinput alsa-utils anacron avahi-daemon eject iw libnss-mdns xdg-utils lxqt xserver-xorg-input-synaptics crda xfce4 dbus-user-session system-config-printer tango-icon-theme xfce4-power-manager xfce4-terminal xfce4-goodies mousepad vlc libutempter0 xterm numix-gtk-theme dconf-tools plank network-manager-gnome network-manager-openvpn dtrx emacs25 +chroot $outmnt apt-get install -y -d xorg acpi-support lightdm tasksel dpkg librsvg2-common xorg xserver-xorg-input-libinput alsa-utils anacron avahi-daemon eject iw libnss-mdns xdg-utils lxqt xserver-xorg-input-synaptics crda xfce4 dbus-user-session system-config-printer tango-icon-theme xfce4-power-manager xfce4-terminal xfce4-goodies mousepad vlc libutempter0 xterm numix-gtk-theme dconf-tools plank network-manager-gnome network-manager-openvpn network-manager-openvpn-gnome dtrx emacs25 #Download support for libinput-gestures chroot $outmnt apt install -y libinput-tools xdotool build-essential diff --git a/scripts/buildKernel.sh b/scripts/buildKernel.sh index 55e99ef..a7bab5d 100755 --- a/scripts/buildKernel.sh +++ b/scripts/buildKernel.sh @@ -3,6 +3,22 @@ #Build kenerl, wifi firmware +# This file is part of PrawnOS (http://www.prawnos.com) +# Copyright (c) 2018 Hal Emmerich + +# PrawnOS 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. + +# PrawnOS 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. + +# You should have received a copy of the GNU General Public License +# along with PrawnOS. If not, see . + + KVER=4.17.2 TEST_PATCHES=false diff --git a/scripts/buildNewKernelIntoFS.sh b/scripts/buildNewKernelIntoFS.sh index 9a93025..812cbd4 100755 --- a/scripts/buildNewKernelIntoFS.sh +++ b/scripts/buildNewKernelIntoFS.sh @@ -1,5 +1,19 @@ #!/bin/sh -xe +# This file is part of PrawnOS (http://www.prawnos.com) +# Copyright (c) 2018 Hal Emmerich + +# PrawnOS 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. + +# PrawnOS 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. + +# You should have received a copy of the GNU General Public License +# along with PrawnOS. If not, see . KVER=4.17.2 diff --git a/scripts/crossmenuconfig.sh b/scripts/crossmenuconfig.sh index d1fff95..59354a4 100755 --- a/scripts/crossmenuconfig.sh +++ b/scripts/crossmenuconfig.sh @@ -3,6 +3,22 @@ #Runs Make menuconfig with the proper enviroment vars for cross compiling arm #Grabs the file named config in resources/BuildResources directory, and updates it + +# This file is part of PrawnOS (http://www.prawnos.com) +# Copyright (c) 2018 Hal Emmerich + +# PrawnOS 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. + +# PrawnOS 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. + +# You should have received a copy of the GNU General Public License +# along with PrawnOS. If not, see . + KVER=4.17.2 ROOT_DIR=`pwd`