added mem-block semaphore

This commit is contained in:
2022-08-30 19:01:21 +02:00
parent 4c67d0bba4
commit 6974c2b8e6
6 changed files with 68 additions and 18 deletions
+4 -2
View File
@@ -14,6 +14,7 @@ CFLAGS+= -fno-common -ffunction-sections -fdata-sections
CFLAGS+= -g -gdwarf-2
CFLAGS+= -Wall
LDFLAGS+= ${CFLAGS}
LDFLAGS+= --static
#LDFLAGS+= -nostartfiles
@@ -32,7 +33,8 @@ OBJS+= main.o
OBJS+= syscall.o
OBJS+= usartu.o
OBJS+= scheduler.o
OBJS+= semoper.o
OBJS+= semaphore.o
main.elf: $(OBJS)
$(TARGET)-gcc $(^F) $(LDFLAGS) -o $@
@@ -42,7 +44,7 @@ main.elf: $(OBJS)
$(TARGET)-gcc $(CFLAGS) -c -o $@ $<
%.o: %.S
$(TARGET)-as $(ASFLAGS) -o $@ $<
$(TARGET)-gcc $(CFLAGS) -c -o $@ $<
%.bin: %.elf
$(TARGET)-objcopy -O binary $< $@