-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
89c1259
commit 23d79fa
Showing
210 changed files
with
90,234 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#makefile for the gcc desktop linux environment | ||
#PIC=Position independent code for x86 architectures | ||
CFLAGS := -Wall -g -fPIC -I../inc | ||
OBJECTS := testlib.o | ||
CC = arm-cortex_a8-linux-gnueabihf-gcc | ||
|
||
all: libtest.so | ||
|
||
# Build the shared library | ||
libtest.so: $(OBJECTS) | ||
$(CC) -shared -o libtest.so $(OBJECTS) | ||
|
||
testlib.o: testlib.c | ||
$(CC) $(CFLAGS) -c testlib.c | ||
|
||
clean: | ||
rm -f $(OBJECTS) | ||
rm -f libtest.so |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
CFLAGS = -Wall -g -I../inc | ||
OBJECTS = testlib.o | ||
CC = arm-cortex_a8-linux-gnueabihf-gcc | ||
|
||
all: libtest.a | ||
|
||
# Build the static library | ||
libtest.a: $(OBJECTS) | ||
ar rc libtest.a $(OBJECTS) | ||
|
||
testlib.o: testlib.c | ||
$(CC) $(CFLAGS) -c testlib.c | ||
|
||
clean: | ||
rm -f $(OBJECTS) | ||
rm -f libtest.a |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
CFLAGS := -c -Wall -I../inc | ||
PROGS := hello-arm-static hello-arm-shared | ||
CC = arm-cortex_a8-linux-gnueabihf-gcc | ||
|
||
all: $(PROGS) | ||
|
||
hello-arm.o: hello-arm.c | ||
$(CC) $(CFLAGS) -o $@ $^ | ||
|
||
hello-arm-static: hello-arm.o | ||
# $(CC) $(LDFLAGS) -o $@ $^ ../static/libtest.a | ||
$(CC) -o $@ $^ -L../static -ltest -static | ||
|
||
hello-arm-shared: hello-arm.o | ||
$(CC) -o $@ $^ -L../shared -ltest | ||
|
||
clean: | ||
rm -f *.o | ||
rm -f $(PROGS) | ||
|
||
install: | ||
cp $(PROGS) $(TARGET_DIR)/usr/local/bin |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#makefile for the gcc desktop linux environment | ||
#PIC=Position independent code for x86 architectures | ||
CFLAGS := -Wall -g -fPIC -I../inc | ||
OBJECTS := testlib.o | ||
|
||
all: libtest.so | ||
|
||
# Build the shared library | ||
libtest.so: $(OBJECTS) | ||
$(CC) -shared -o libtest.so $(OBJECTS) | ||
|
||
testlib.o: testlib.c | ||
$(CC) $(CFLAGS) -c testlib.c | ||
|
||
clean: | ||
rm -f $(OBJECTS) | ||
rm -f libtest.so |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CFLAGS = -Wall -g -I../inc | ||
OBJECTS = testlib.o | ||
|
||
all: libtest.a | ||
|
||
# Build the static library | ||
libtest.a: $(OBJECTS) | ||
ar rc libtest.a $(OBJECTS) | ||
|
||
testlib.o: testlib.c | ||
$(CC) $(CFLAGS) -c testlib.c | ||
|
||
clean: | ||
rm -f $(OBJECTS) | ||
rm -f libtest.a |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
CFLAGS := -c -Wall -I../inc | ||
PROGS := hello-arm-static hello-arm-shared | ||
|
||
all: $(PROGS) | ||
|
||
hello-arm.o: hello-arm.c | ||
$(CC) $(CFLAGS) -o $@ $^ | ||
|
||
hello-arm-static: hello-arm.o | ||
# $(CC) $(LDFLAGS) -o $@ $^ ../static/libtest.a | ||
$(CC) -o $@ $^ -L../static -ltest -static | ||
|
||
hello-arm-shared: hello-arm.o | ||
$(CC) -o $@ $^ -L../shared -ltest | ||
|
||
clean: | ||
rm -f *.o | ||
rm -f $(PROGS) | ||
|
||
install: | ||
cp $(PROGS) $(TARGET_DIR)/usr/local/bin |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#makefile for the gcc desktop linux environment | ||
#PIC=Position independent code for x86 architectures | ||
CFLAGS := -Wall -g -fPIC -I../inc | ||
OBJECTS := testlib.o | ||
CC = arm-unknown-linux-gnueabi-gcc | ||
|
||
all: libtest.so | ||
|
||
# Build the shared library | ||
libtest.so: $(OBJECTS) | ||
$(CC) -shared -o libtest.so $(OBJECTS) | ||
|
||
testlib.o: testlib.c | ||
$(CC) $(CFLAGS) -c testlib.c | ||
|
||
clean: | ||
rm -f $(OBJECTS) | ||
rm -f libtest.so |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
CFLAGS = -Wall -g -I../inc | ||
OBJECTS = testlib.o | ||
CC = arm-unknown-linux-gnueabi-gcc | ||
|
||
all: libtest.a | ||
|
||
# Build the static library | ||
libtest.a: $(OBJECTS) | ||
ar rc libtest.a $(OBJECTS) | ||
|
||
testlib.o: testlib.c | ||
$(CC) $(CFLAGS) -c testlib.c | ||
|
||
clean: | ||
rm -f $(OBJECTS) | ||
rm -f libtest.a |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
CFLAGS := -c -Wall -I../inc | ||
PROGS := hello-arm-static hello-arm-shared | ||
CC = arm-unknown-linux-gnueabi-gcc | ||
|
||
all: $(PROGS) | ||
|
||
hello-arm.o: hello-arm.c | ||
$(CC) $(CFLAGS) -o $@ $^ | ||
|
||
hello-arm-static: hello-arm.o | ||
# $(CC) $(LDFLAGS) -o $@ $^ ../static/libtest.a | ||
$(CC) -o $@ $^ -L../static -ltest -static | ||
|
||
hello-arm-shared: hello-arm.o | ||
$(CC) -o $@ $^ -L../shared -ltest | ||
|
||
clean: | ||
rm -f *.o | ||
rm -f $(PROGS) | ||
|
||
install: | ||
cp $(PROGS) $(TARGET_DIR)/usr/local/bin |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
System Information using shell scripting | ||
1. User Information | ||
nachiket | ||
|
||
2. Operating system Type/Brand | ||
Linux | ||
Distributor ID: Ubuntu | ||
Description: Ubuntu 18.04.1 LTS | ||
Release: 18.04 | ||
Codename: bionic | ||
|
||
3. OS Distribution | ||
Description: Ubuntu 18.04.1 LTS | ||
|
||
4. OS Version | ||
Release: 18.04 | ||
|
||
5. Kernel Version | ||
4.15.0-43-generic | ||
|
||
6. Kernel gcc version build | ||
gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0 | ||
Copyright (C) 2017 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. | ||
|
||
|
||
7. Kernel build time | ||
#46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 | ||
|
||
8. System Architecture Information | ||
x86_64 | ||
|
||
9. Information on file system memory | ||
Filesystem Size Used Avail Use% Mounted on | ||
udev 5.7G 0 5.7G 0% /dev | ||
tmpfs 1.2G 1.7M 1.2G 1% /run | ||
/dev/sda1 106G 20G 81G 20% / | ||
tmpfs 5.8G 94M 5.7G 2% /dev/shm | ||
tmpfs 5.3M 4.1k 5.3M 1% /run/lock | ||
tmpfs 5.8G 0 5.8G 0% /sys/fs/cgroup | ||
/dev/loop1 2.5M 2.5M 0 100% /snap/gnome-calculator/180 | ||
/dev/loop0 4.0M 4.0M 0 100% /snap/gnome-system-monitor/51 | ||
/dev/loop2 92M 92M 0 100% /snap/core/4917 | ||
/dev/loop3 148M 148M 0 100% /snap/gnome-3-26-1604/70 | ||
/dev/loop5 37M 37M 0 100% /snap/gtk-common-themes/319 | ||
/dev/loop4 16M 16M 0 100% /snap/gnome-logs/37 | ||
/dev/loop6 14M 14M 0 100% /snap/gnome-characters/103 | ||
/dev/loop7 16M 16M 0 100% /snap/gnome-logs/45 | ||
/dev/loop9 4.0M 4.0M 0 100% /snap/gnome-system-monitor/57 | ||
/dev/loop8 37M 37M 0 100% /snap/gtk-common-themes/818 | ||
/dev/loop10 148M 148M 0 100% /snap/gnome-3-26-1604/74 | ||
/dev/loop11 94M 94M 0 100% /snap/core/6130 | ||
/dev/loop12 2.4M 2.4M 0 100% /snap/gnome-calculator/260 | ||
/dev/loop13 14M 14M 0 100% /snap/gnome-characters/139 | ||
tmpfs 1.2G 17k 1.2G 1% /run/user/121 | ||
tmpfs 1.2G 62k 1.2G 1% /run/user/1000 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash | ||
# Title: Displaying system information using shell scripting | ||
# Author: Nachiket Kelkar | ||
#Purpose: For Advanced Embedded Software Development class Homework assignment 1 | ||
|
||
echo "System Information using shell scripting" | ||
echo "1. User Information" | ||
users | ||
echo "" | ||
|
||
echo "2. Operating system Type/Brand" | ||
uname | ||
lsb_release -a | ||
echo "" | ||
|
||
echo "3. OS Distribution" | ||
lsb_release -d | ||
echo "" | ||
|
||
echo "4. OS Version" | ||
lsb_release -r | ||
echo "" | ||
|
||
echo "5. Kernel Version" | ||
uname -r | ||
echo "" | ||
|
||
echo "6. Kernel gcc version build" | ||
gcc --version | ||
echo "" | ||
|
||
echo "7. Kernel build time" | ||
uname -v | ||
echo "" | ||
|
||
echo "8. System Architecture Information" | ||
uname -i | ||
echo "" | ||
|
||
echo "9. Information on file system memory" | ||
df -H | ||
echo "" | ||
|
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*/10 * * * * /./sorting /output_for_sort.txt 2>&1 |
Oops, something went wrong.