Skip to content

Commit 64f0bed

Browse files
ArduinoBotfacchinm
authored andcommitted
add OpenOCD ARM script
1 parent ebf976e commit 64f0bed

File tree

203 files changed

+256321
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

203 files changed

+256321
-0
lines changed

OpenOCD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 5bee7f5b2c13b02f2d6ad98de6a826279777c8a9

compile_linux_openocd.sh

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#!/bin/bash -xe
2+
3+
mkdir -p distrib/arm
4+
5+
#disable pkg-config
6+
export PKG_CONFIG_PATH=`pwd`
7+
8+
cd libusb-1.0.9
9+
export LIBUSB_DIR=`pwd`
10+
./configure --enable-static --disable-shared --host=arm-linux-gnueabihf
11+
make clean
12+
make -j4
13+
cd ..
14+
15+
#cd kmod-22
16+
#export KMOD_DIR=`pwd`
17+
#./configure --host=arm-linux-gnueabihf
18+
#make clean
19+
#make -j4
20+
#cd ..
21+
22+
#export KMOD_CFLAGS="-I$KMOD_DIR/libkmod/"
23+
#export KMOD_LIBS="-L$KMOD_DIR/libkmod/.libs/ -lkmod"
24+
25+
cd eudev-3.1.5
26+
export UDEV_DIR=`pwd`
27+
./configure --enable-static --disable-shared --host=arm-linux-gnueabihf --disable-blkid --disable-kmod
28+
make clean
29+
make -j4
30+
cd ..
31+
32+
export libusb_CFLAGS="-I$LIBUSB_DIR/libusb/"
33+
export libusb_LIBS="-L$LIBUSB_DIR/libusb/.libs/ -lusb-1.0 -lpthread"
34+
export libudev_CFLAGS="-I$UDEV_DIR/src/libudev/"
35+
export libudev_LIBS="-L$UDEV_DIR/src/libudev/.libs/ -ludev"
36+
37+
cd hidapi
38+
export HIDAPI_DIR=`pwd`
39+
./configure --enable-static --disable-shared --host=arm-linux-gnueabihf
40+
make clean
41+
make -j4
42+
cd ..
43+
44+
cd OpenOCD
45+
export LIBUSB1_CFLAGS="-I$LIBUSB_DIR/libusb/"
46+
export LIBUSB1_LIBS="-L$LIBUSB_DIR/libusb/.libs/ -lusb-1.0 -lpthread"
47+
export HIDAPI_CFLAGS="-I$HIDAPI_DIR/hidapi/"
48+
export HIDAPI_LIBS="-L$HIDAPI_DIR/linux/.libs/ -L$HIDAPI_DIR/libusb/.libs/ -lhidapi-hidraw -lhidapi-libusb"
49+
export CFLAGS="-DHAVE_LIBUSB_ERROR_NAME"
50+
PKG_CONFIG_PATH=`pwd` ./configure --host=arm-linux-gnueabihf
51+
make clean
52+
CFLAGS=-static make
53+
#cp src/dfu-suffix src/dfu-prefix src/dfu-util ../distrib/arm/

eudev-3.1.5/.gitignore

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
src/udev/udevadm
2+
src/udev/udevd
3+
4+
*.[oa]
5+
*.l[oa]
6+
.libs
7+
.deps
8+
Makefile
9+
Makefile.in
10+
11+
aclocal.m4
12+
autom4te.cache
13+
config.*
14+
configure
15+
libtool
16+
stamp-h1
17+
18+
depcomp
19+
install-sh
20+
ltmain.sh
21+
missing
22+
23+
*.pc
24+
25+
m4/libtool.m4
26+
m4/ltoptions.m4
27+
m4/ltsugar.m4
28+
m4/ltversion.m4
29+
m4/lt~obsolete.m4
30+
31+
src/ata_id/ata_id
32+
src/cdrom_id/cdrom_id
33+
src/collect/collect
34+
src/mtd_probe/mtd_probe
35+
src/scsi_id/scsi_id
36+
src/v4l_id/v4l_id
37+
38+
src/udev/keyboard-keys-from-name.gperf
39+
src/udev/keyboard-keys-from-name.h
40+
src/udev/keyboard-keys-to-name.h
41+
src/udev/keyboard-keys.txt
42+
43+
test/test-libudev
44+
test/test-udev
45+
test/test
46+
test-driver
47+
48+
test/rules-test.sh.log
49+
test/rules-test.sh.trs
50+
test/test-suite.log
51+
test/udev-test.pl.log
52+
test/udev-test.pl.trs
53+
54+
eudev-*.tar.gz

eudev-3.1.5/.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: c
2+
compiler:
3+
- gcc
4+
- clang
5+
before_install:
6+
- sudo apt-get update -qq
7+
- sudo apt-get install autotools-dev automake autoconf libtool gtk-doc-tools gperf
8+
script: ./autogen.sh && ./configure && make V=1 distcheck
9+
notifications:
10+
irc:
11+
channels:
12+
- "irc.freenode.org#gentoo-udev"
13+
on_success: change
14+
on_failure: always

eudev-3.1.5/CONTRIBUTING

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
2+
CONTRIBUTING.
3+
4+
Please read the following guidelines before contributing.
5+
6+
1. The basic unit of contribution is a "git commit". This will be merged into
7+
master by one of the team members who will review it and sign-off/commit or
8+
reject it. If the commit is in another branch, it will added to HEAD/master
9+
using
10+
11+
git cherry-pick -s <tree-ish>
12+
13+
Or if the commit is submitted as a stand alone file produce by
14+
15+
git format-patch <tree-ish>
16+
17+
Then it will be committed by
18+
19+
git am -s 0001-foo-bar.patch
20+
21+
Or if the commit is submitted as a github merge request, then the github web
22+
interface can be used.
23+
24+
25+
26+
2. Work in a branch immediately off of master, do not work directly in master,
27+
and do not be afraid of creating a local branch for every experimental thing you
28+
want to try:
29+
30+
git checkout master # make sure your on master
31+
git branch idea1 # I've got an idea, let me work on it
32+
git checkout idea1
33+
<hack ... hack ... hack>
34+
git commit -m "step1" # I like what I've done so far, but I'm not finished
35+
<hack ... hack ... hack>
36+
git commit -m "step2"
37+
<hack ... hack ... hack>
38+
git commit -m "step3"
39+
<hack ... hack ... hack>
40+
git revert <tree-ish for step2> # Wow step 2 was dumb
41+
<hack ... hack ... hack>
42+
git commit -m "step4" # Its good now, but those
43+
# commits are messy
44+
45+
git rebase -i <tree-ish step1>^ # start a rebase on the parent of step1
46+
(drop into editor and squash commits) # note the ^ at the end!
47+
(exit editor and fix commit message)
48+
49+
Alternatively, you can cherry-pick those commits into another prestine branch:
50+
51+
... its good to go! ....
52+
53+
git checkout master
54+
git branch idea1-clean
55+
git checkout idea1-clean
56+
git cherry-pick <sha1-of-good-commit1>
57+
git cherry-pick <sha1-of-good-commit2>
58+
(pick them in any order that stacks)
59+
(you can skip commits, but do them in the correct order to avoid conflits)
60+
git rebase -i <tree-ish of sha1-of-good-commit1>^ # squash many commits into one
61+
# note the ^ at the end!
62+
63+
Once you are done with a local branch you can delete it using
64+
65+
git branch -D idea1
66+
67+
You can delete a remote branch by doing
68+
69+
git push origin :idea1
70+
71+
72+
73+
3. Your commit message should conform to the following standard:
74+
75+
file/changed: Concice and complete statement of the purpose
76+
77+
This is the body of the commit message. The line above is the
78+
summary. The summary should be no more than 72 chars long. The
79+
body can be more freely formatted, but make it look nice. Make
80+
sure to reference any bug reports and other contributors. Make
81+
sure the correct authorship appears. Reference any early commits
82+
by their full shaw:
83+
84+
b52c6402b5b42620571c36c74a12dcb45ec1e0d6
85+
86+
which you can put on its own line and indent.
87+
88+
X-Gentoo-Bug: 400837
89+
X-Gentoo-Bug-URL: https://bugs.gentoo.org/400837
90+
91+
Reported-by: Snoopy Coderdog <[email protected]>
92+
Signed-off-by: Anthony G. Basile <[email protected]>
93+
94+
If you commit using
95+
96+
git commit -s
97+
98+
your sign-off will be automatically added. If the authorship is wrong
99+
fix it by
100+
101+
git commit -s --author="Richard Feynmann <[email protected]>"
102+
103+
If the message doesn't look right after you commit locally, you can fix it by
104+
doing
105+
106+
git commit --amend.
107+
108+
Then push it to your public repo.
109+
110+
111+
4. Open an issue at
112+
113+
https://github.com/gentoo/eudev/issues?state=open
114+
115+
And request a pull of your clean commit. A team member will review it,
116+
discuss it and commit it to master or reject it.
117+
118+
119+
5. eudev is a peer-reviewed project. So even team members must ask another
120+
team member to sign-off and commit your work. The only exception are trivial
121+
commits
122+
123+
124+
6. HEAD/master must always build and must always be considered stable.
125+
126+
127+
7. Releases should be tagged and signed using
128+
129+
git tag -s -u <gpg name> -m "Release X"
130+
131+
where X is the full release number. Make sure that before you release,
132+
you change the value in AC_INIT of configure.ac to match the release
133+
number.
134+
135+
136+
8. Tarball releases should be made from HEAD/master at signed tagged points
137+
by doing
138+
139+
autogen.sh
140+
./configure
141+
make
142+
make dist
143+
144+
145+
9. TODO: coding style for C, python, perl and autotool stuff.

0 commit comments

Comments
 (0)