Last active
December 7, 2015 09:05
minimal patchset am33x-v4.4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Copyright (c) 2009-2015 Robert Nelson <robertcnelson@gmail.com> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in | |
# all copies or substantial portions of the Software. | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
# THE SOFTWARE. | |
# Split out, so build_kernel.sh and build_deb.sh can share.. | |
. ${DIR}/version.sh | |
if [ -f ${DIR}/system.sh ] ; then | |
echo . ${DIR}/system.sh | |
. ${DIR}/system.sh | |
fi | |
#Debian 7 (Wheezy): git version 1.7.10.4 and later needs "--no-edit" | |
unset git_opts | |
git_no_edit=$(LC_ALL=C git help pull | grep -m 1 -e "--no-edit" || true) | |
echo DEBUG git_no_edit=$(LC_ALL=C git help pull | grep -m 1 -e "--no-edit" || true) | |
if [ ! "x${git_no_edit}" = "x" ] ; then | |
git_opts="--no-edit" | |
echo DEBUG git_opts="--no-edit" | |
fi | |
git="git am" | |
echo DEBUG $git | |
#git_patchset="" | |
#git_opts | |
if [ "${RUN_BISECT}" ] ; then | |
git="git apply" | |
echo DEBUG $git | |
fi | |
echo "Starting patch.sh" | |
git_add () { | |
echo DEBUG git_add | |
echo DEBUG git add . | |
git add . | |
echo DEBUG git commit -a -m 'testing patchset' | |
git commit -a -m 'testing patchset' | |
} | |
start_cleanup () { | |
git="git am --whitespace=fix" | |
echo DEBUG start_cleanup | |
echo DEBUG $git | |
} | |
cleanup () { | |
echo DEBUG cleanup | |
if [ "${number}" ] ; then | |
git format-patch -${number} -o ${DIR}/patches/ | |
echo DEBUG git format-patch -${number} -o ${DIR}/patches/ | |
fi | |
exit 2 | |
} | |
bbb_overlays () { | |
echo "dir: bbb_overlays" | |
echo "DEBUG LINE 103" | |
#regenerate="enable" | |
if [ "x${regenerate}" = "xenable" ] ; then | |
echo DEBUG Line 106: bbb_overlays: start_cleanup | |
start_cleanup | |
fi | |
#${git} "${DIR}/patches/bbb_overlays/0001-configfs-Implement-binary-attributes-v5.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0002-OF-DT-Overlay-configfs-interface-v6.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0003-gitignore-Ignore-DTB-files.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0006-arm-omap-Proper-cleanups-for-omap_device.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0007-serial-omap-Fix-port-line-number-without-aliases.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0008-tty-omap-serial-Fix-up-platform-data-alloc.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0009-ARM-DT-Enable-symbols-when-CONFIG_OF_OVERLAY-is-used.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0010-of-Custom-printk-format-specifier-for-device-node.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0011-of-overlay-kobjectify-overlay-objects.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0012-of-overlay-global-sysfs-enable-attribute.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0013-Documentation-ABI-overlays-global-attributes.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0014-Documentation-document-of_overlay_disable-parameter.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0015-of-overlay-add-per-overlay-sysfs-attributes.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0016-Documentation-ABI-overlays-per-overlay-docs.patch" | |
${git} "${DIR}/patches/bbb_overlays/0017-i2c-nvmem-at24-Provide-an-EEPROM-framework-interface.patch" | |
${git} "${DIR}/patches/bbb_overlays/0018-misc-Beaglebone-capemanager.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0019-doc-misc-Beaglebone-capemanager-documentation.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0020-doc-dt-beaglebone-cape-manager-bindings.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0021-doc-ABI-bone_capemgr-sysfs-API.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0022-MAINTAINERS-Beaglebone-capemanager-maintainer.patch" | |
${git} "${DIR}/patches/bbb_overlays/0023-arm-dts-Enable-beaglebone-cape-manager.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0024-of-overlay-Implement-indirect-target-support.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0025-of-unittest-Add-indirect-overlay-target-test.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0026-doc-dt-Document-the-indirect-overlay-method.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0027-of-overlay-Introduce-target-root-capability.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0028-of-unittest-Unit-tests-for-target-root-overlays.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0029-doc-dt-Document-the-target-root-overlay-method.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0030-of-dynamic-Add-__of_node_dupv.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0031-of-changesets-Introduce-changeset-helper-methods.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0032-RFC-Device-overlay-manager-PCI-USB-DT.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0035-of-remove-bogus-return-in-of_core_init.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0036-of-Maintainer-fixes-for-dynamic.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0037-of-unittest-changeset-helpers.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0038-of-rename-_node_sysfs-to-_node_post.patch" | |
#${git} "${DIR}/patches/bbb_overlays/0039-of-Support-hashtable-lookups-for-phandles.patch" | |
} | |
beaglebone () { | |
echo "Line 125: dir: beaglebone/dts" | |
${git} "${DIR}/patches/beaglebone/dts/0004-add-overlay-dtb.patch" | |
${git} "${DIR}/patches/beaglebone/dts/0006-spi-omap2-mcspi-ti-pio-mode.patch" | |
echo "Line 129 dir: beaglebone/capes" | |
${git} "${DIR}/patches/beaglebone/capes/0001-cape-Argus-UPS-cape-support.patch" | |
${git} "${DIR}/patches/beaglebone/capes/0002-Added-support-for-Replicape.patch" | |
${git} "${DIR}/patches/beaglebone/capes/0003-ARM-dts-am335x-boneblack-enable-wl1835mod-cape-suppo.patch" | |
#This has to be last... | |
echo "Line 135 dir: beaglebone/dtbs" | |
${git} "${DIR}/patches/beaglebone/dtbs/0001-sync-am335x-peripheral-pinmux.patch" | |
echo "Line 137 dir: beaglebone/firmware" | |
${git} "${DIR}/patches/beaglebone/firmware/0001-add-am33x-firmware.patch" | |
} | |
echo DEBUG: Line 142: call bbb_overlays | |
bbb_overlays | |
echo DEBUG: Line 144: call beaglebone | |
beaglebone | |
echo "patch.sh ran successfully" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
afustini@lappy486 ~/dev/bbb/bb-kernel (am33x-v4.4)*$ rm -rf KERNEL/ && ./build_kernel.sh | |
+ Detected build host [Debian GNU/Linux 8.2 (jessie)] | |
+ host: [x86_64] | |
+ git HEAD commit: [79e63c6dca8eb452b1319c63dfa980a51d7c082c] | |
----------------------------- | |
scripts/gcc: Using: arm-linux-gnueabihf-gcc (Linaro GCC 5.2-2015.11) 5.2.1 20151005 | |
Copyright (C) 2015 Free Software Foundation, Inc. | |
This is free software; see the source for copying conditions. There is NO | |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
----------------------------- | |
CROSS_COMPILE=/home/afustini/dev/bbb/bb-kernel/dl/gcc-linaro-5.2-2015.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- | |
----------------------------- | |
scripts/git: LINUX_GIT not defined in system.sh | |
using default location: /home/afustini/dev/bbb/bb-kernel/ignore/linux-src/ | |
----------------------------- | |
scripts/git: Debug: LINUX_GIT is setup as: [/home/afustini/dev/bbb/bb-kernel/ignore/linux-src]. | |
scripts/git: [url=https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git] | |
fatal: unable to access 'https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/': Could not resolve proxy: proxy | |
----------------------------- | |
Cloning into '/home/afustini/dev/bbb/bb-kernel/KERNEL'... | |
done. | |
Checking out files: 100% (52217/52217), done. | |
Resolve operation not in progress, we are not resuming. | |
git tree is clean... | |
[master 21bd77b] empty cleanup commit | |
HEAD is now at 21bd77b empty cleanup commit | |
Already on 'master' | |
Your branch is ahead of 'origin/master' by 1 commit. | |
(use "git push" to publish your local commits) | |
Current branch master is up to date. | |
----------------------------- | |
scripts/git: pulling from: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git | |
fatal: unable to access 'https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/': Could not resolve proxy: proxy | |
Checking out files: 100% (201/201), done. | |
Switched to a new branch 'v4.4-rc3-bone0' | |
v4.4-rc3 | |
. /home/afustini/dev/bbb/bb-kernel/system.sh | |
DEBUG git_no_edit= --edit, -e, --no-edit | |
DEBUG git_opts=--no-edit | |
DEBUG git am | |
Starting patch.sh | |
DEBUG: Line 142: call bbb_overlays | |
dir: bbb_overlays | |
DEBUG LINE 103 | |
Applying: i2c: nvmem: at24: Provide an EEPROM framework interface | |
Applying: misc: Beaglebone capemanager | |
Applying: arm: dts: Enable beaglebone cape-manager | |
DEBUG: Line 144: call beaglebone | |
Line 125: dir: beaglebone/dts | |
Applying: add overlay dtb | |
Applying: spi-omap2-mcspi: ti,pio-mode | |
Line 129 dir: beaglebone/capes | |
Applying: cape: Argus UPS cape support | |
Applying: Added support for Replicape | |
Applying: ARM: dts: am335x-boneblack: enable wl1835mod cape support | |
Line 135 dir: beaglebone/dtbs | |
Applying: sync: am335x-peripheral/pinmux | |
Line 137 dir: beaglebone/firmware | |
Applying: add am33x firmware | |
patch.sh ran successfully | |
[v4.4-rc3-bone0 d06072d] 4.4-rc3-bone0 patchset | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment