[oe-commits] Ulf Samuelsson : Add some nautilus-scripts to make it easier to work with OE
git version control
git at git.openembedded.org
Sat Aug 22 14:56:04 UTC 2009
Module: openembedded.git
Branch: ulf/linux-2.6.30.2
Commit: bc658660ded8a54f9ec0b114bdaec7d7b72852e3
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=bc658660ded8a54f9ec0b114bdaec7d7b72852e3
Author: Ulf Samuelsson <ulf.samuelsson at atmel.com>
Date: Sat Aug 22 16:40:45 2009 +0200
Add some nautilus-scripts to make it easier to work with OE
apply: Apply a selected <patch>.patch to a selected <source-dir>
diff: diff -urN between the two selected directories
mk-0rig: Copy the selected <dir> to <dir>-0rig
mk-executable: chmod a+x on the selected file
splitdiff: Split the selected patch "<patchfile>.patch" into small parts
one patch per affected file, which is called
arch_arm_mach-at91_at91sam9g45.c.patch or similar
The patches are stored in the "<patchfile>/patch-sets" directory
If a file "template" is available in the same directory
as the patch, then the files are moved to a subdirectory.
"template" is a file of strings, one per line (without '"')
If "template" contains "arch_arm" then
<patchfile>/patch-sets/arch_arm_mach-at91_at91sam9g45.c.patch
will be moved to
<patchfile>/patch-sets/arch_arm/arch_arm_mach-at91_at91sam9g45.c.patch
SRC_URI_append: Select a number of files, and the script will generate
a SRC_URI_append statement, appending these files.
It is assumed that the bitbake script will find this using
its normal path.
SRC_URI_append_linux:
Generates a SRC_URI_append file for the kernel
Assumes a directory structure:
The directory structure used to support the at91 for 2.6.30.2:
2.6.30
2.6.30.2 # common , currently does nothing...
linux.inc
patches
network_files
SRC_URI_append.inc
at91 # at91 specific
at91.inc
logo_linux_clut224.ppm
2.6.30.2
patch-sets # Not called "patches" by design
network_files
SRC_URI_append.inc
<patches>
boards
at91sam9g45ek
defconfig
logo_linux_clut224.ppm
The "2.6.30/2.6.30.2" directory can normally be copied to
"2.6.30/2.6.30.3" and renamed if the next kernel version is
needed. No need to edit, if this is pristine.
test-patches: Tests if some patches can be applied without conflict to a source directory.
Select a source directory and a patch directory.
The patchdirectory contains the "patch-sets" directory
The patch-sets directory contains a number of subdirectories.
These are applied in order to the source directory.
The logs are either saved in a FAIL direcory or in an OK directory.
The successful patch-sets are listed in a SUCCESS directory.
The script reports OK, or FAIL.
---
scripts/nautilus-scripts/SRC_URI_append | 18 +++
scripts/nautilus-scripts/SRC_URI_append_linux | 182 +++++++++++++++++++++++++
scripts/nautilus-scripts/apply | 179 ++++++++++++++++++++++++
scripts/nautilus-scripts/diff | 32 +++++
scripts/nautilus-scripts/mk-0rig | 18 +++
scripts/nautilus-scripts/mk-executable | 9 ++
scripts/nautilus-scripts/splitdiff | 87 ++++++++++++
scripts/nautilus-scripts/test-patches | 118 ++++++++++++++++
8 files changed, 643 insertions(+), 0 deletions(-)
Diff: http://gitweb.openembedded.net/?p=openembedded.git/?a=commitdiff;h=bc658660ded8a54f9ec0b114bdaec7d7b72852e3
More information about the Openembedded-commits
mailing list