-
-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from babbleberry/revert-51-master
Revert "Solve Issue #50 pull up pull down register mapping wrong way around"
- Loading branch information
Showing
107 changed files
with
201 additions
and
11,853 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,22 +1,22 @@ | ||
CFILES = $(wildcard *.c) | ||
OFILES = $(CFILES:.c=.o) | ||
GCCFLAGS = -Wall -O2 -ffreestanding -nostdinc -nostdlib -nostartfiles | ||
GCCPATH = ../../gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf/bin | ||
LLVMPATH = /opt/homebrew/opt/llvm/bin | ||
CLANGFLAGS = -Wall -O2 -ffreestanding -nostdinc -nostdlib -mcpu=cortex-a72+nosimd | ||
|
||
all: clean kernel8.img | ||
|
||
boot.o: boot.S | ||
$(GCCPATH)/aarch64-none-elf-gcc $(GCCFLAGS) -c boot.S -o boot.o | ||
$(LLVMPATH)/clang --target=aarch64-elf $(CLANGFLAGS) -c boot.S -o boot.o | ||
|
||
audio.o : audio.bin | ||
$(GCCPATH)/aarch64-none-elf-objcopy -I binary -O elf64-littleaarch64 -B aarch64 $< $@ | ||
$(LLVMPATH)/llvm-objcopy -I binary -O elf64-littleaarch64 -B aarch64 $< $@ | ||
|
||
%.o: %.c | ||
$(GCCPATH)/aarch64-none-elf-gcc $(GCCFLAGS) -c $< -o $@ | ||
$(LLVMPATH)/clang --target=aarch64-elf $(CLANGFLAGS) -c $< -o $@ | ||
|
||
kernel8.img: boot.o $(OFILES) audio.o | ||
$(GCCPATH)/aarch64-none-elf-ld -nostdlib boot.o $(OFILES) audio.o -T link.ld -o kernel8.elf | ||
$(GCCPATH)/aarch64-none-elf-objcopy -O binary kernel8.elf kernel8.img | ||
$(LLVMPATH)/ld.lld -m aarch64elf -nostdlib boot.o $(OFILES) audio.o -T link.ld -o kernel8.elf | ||
$(LLVMPATH)/llvm-objcopy -O binary kernel8.elf kernel8.img | ||
|
||
clean: | ||
/bin/rm kernel8.elf *.o *.img > /dev/null 2> /dev/null || true |
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 @@ | ||
CFILES = $(wildcard *.c) | ||
OFILES = $(CFILES:.c=.o) | ||
GCCFLAGS = -Wall -O2 -ffreestanding -nostdinc -nostdlib -nostartfiles | ||
GCCPATH = ../../gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf/bin | ||
|
||
all: clean kernel8.img | ||
|
||
boot.o: boot.S | ||
$(GCCPATH)/aarch64-none-elf-gcc $(GCCFLAGS) -c boot.S -o boot.o | ||
|
||
audio.o : audio.bin | ||
$(GCCPATH)/aarch64-none-elf-objcopy -I binary -O elf64-littleaarch64 -B aarch64 $< $@ | ||
|
||
%.o: %.c | ||
$(GCCPATH)/aarch64-none-elf-gcc $(GCCFLAGS) -c $< -o $@ | ||
|
||
kernel8.img: boot.o $(OFILES) audio.o | ||
$(GCCPATH)/aarch64-none-elf-ld -nostdlib boot.o $(OFILES) audio.o -T link.ld -o kernel8.elf | ||
$(GCCPATH)/aarch64-none-elf-objcopy -O binary kernel8.elf kernel8.img | ||
|
||
clean: | ||
/bin/rm kernel8.elf *.o *.img > /dev/null 2> /dev/null || true |
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
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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
CFILES = $(wildcard *.c lib/*.c) | ||
OFILES = $(CFILES:.c=.o) | ||
GCCFLAGS = -Wall -O2 -ffreestanding -nostdinc -nostdlib | ||
GCCPATH = ../../gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf/bin | ||
|
||
LLVMPATH = /opt/homebrew/opt/llvm/bin | ||
CLANGFLAGS = -Wall -O2 -ffreestanding -nostdinc -nostdlib -mcpu=cortex-a72+nosimd | ||
|
||
all: clean kernel8.img | ||
|
||
boot/boot.o: boot/boot.S | ||
$(GCCPATH)/aarch64-none-elf-gcc $(GCCFLAGS) -c boot/boot.S -o boot/boot.o | ||
$(LLVMPATH)/clang --target=aarch64-elf $(CLANGFLAGS) -c $< -o $@ | ||
|
||
bin/BCM4345C0.o : bin/BCM4345C0.hcd | ||
$(GCCPATH)/aarch64-none-elf-objcopy -I binary -O elf64-littleaarch64 -B aarch64 $< $@ | ||
$(LLVMPATH)/llvm-objcopy -I binary -O elf64-littleaarch64 -B aarch64 $< $@ | ||
|
||
bin/audio.o : bin/audio.bin | ||
$(GCCPATH)/aarch64-none-elf-objcopy -I binary -O elf64-littleaarch64 -B aarch64 $< $@ | ||
$(LLVMPATH)/llvm-objcopy -I binary -O elf64-littleaarch64 -B aarch64 $< $@ | ||
|
||
%.o: %.c | ||
$(GCCPATH)/aarch64-none-elf-gcc $(GCCFLAGS) -c $< -o $@ | ||
$(LLVMPATH)/clang --target=aarch64-elf $(CLANGFLAGS) -c $< -o $@ | ||
|
||
kernel8.img: boot/boot.o $(OFILES) bin/BCM4345C0.o bin/audio.o | ||
$(GCCPATH)/aarch64-none-elf-ld -nostdlib boot/boot.o $(OFILES) bin/BCM4345C0.o bin/audio.o -T boot/link.ld -o kernel8.elf | ||
$(GCCPATH)/aarch64-none-elf-objcopy -O binary kernel8.elf kernel8.img | ||
$(LLVMPATH)/ld.lld -m aarch64elf -nostdlib boot/boot.o $(OFILES) bin/BCM4345C0.o bin/audio.o -T boot/link.ld -o kernel8.elf | ||
$(LLVMPATH)/llvm-objcopy -O binary kernel8.elf kernel8.img | ||
|
||
clean: | ||
/bin/rm kernel8.elf *.o bin/*.o boot/*.o *.img > /dev/null 2> /dev/null || true | ||
/bin/rm kernel8.elf *.o bin/*.o boot/*.o lib/*.o *.img > /dev/null 2> /dev/null || true |
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
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
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
CFILES = $(wildcard *.c lib/*.c kernel/*.c) | ||
SFILES = $(wildcard boot/*.S lib/*.S kernel/*.S) | ||
OFILES = $(CFILES:.c=.o) $(SFILES:.S=.o) | ||
GCCFLAGS = -Wall -O2 -ffreestanding -nostdinc -nostdlib -nostartfiles | ||
GCCPATH = ../../gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf/bin | ||
LLVMPATH = /opt/homebrew/opt/llvm/bin | ||
CLANGFLAGS = -Wall -O2 -ffreestanding -nostdlib -mcpu=cortex-a72+nosimd | ||
|
||
all: clean kernel8.img | ||
|
||
%.o: %.c | ||
$(GCCPATH)/aarch64-none-elf-gcc $(GCCFLAGS) -c $< -o $@ | ||
$(LLVMPATH)/clang --target=aarch64-elf $(CLANGFLAGS) -c $< -o $@ | ||
|
||
%.o: %.S | ||
$(GCCPATH)/aarch64-none-elf-gcc $(GCCFLAGS) -c $< -o $@ | ||
$(LLVMPATH)/clang --target=aarch64-elf $(CLANGFLAGS) -c $< -o $@ | ||
|
||
kernel8.img: $(OFILES) | ||
$(GCCPATH)/aarch64-none-elf-ld -nostdlib $(OFILES) -T boot/link.ld -o kernel8.elf | ||
$(GCCPATH)/aarch64-none-elf-objcopy -O binary kernel8.elf kernel8.img | ||
$(LLVMPATH)/ld.lld -m aarch64elf -nostdlib $(OFILES) -T boot/link.ld -o kernel8.elf | ||
$(LLVMPATH)/llvm-objcopy -O binary kernel8.elf kernel8.img | ||
|
||
clean: | ||
/bin/rm kernel8.elf */*.o *.img > /dev/null 2> /dev/null || true |
File renamed without changes.
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.