Merge pull request #1073 from openmv/update_make

Update Makefile.
This commit is contained in:
Ibrahim Abd Elkader 2020-12-31 19:41:50 +02:00 committed by GitHub
commit a4fa9e3321
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -31,8 +31,8 @@ script:
- popd
- arm-none-eabi-gcc --version
# build firmware
- make -j5 -C src/micropython/mpy-cross
- make -j5 TARGET=$TARGET -C src
- make -j$(nproc) -C src/micropython/mpy-cross
- make -j$(nproc) TARGET=$TARGET -C src
- mkdir ~/build/$TARGET
- cp -r src/build/bin/* ~/build/$TARGET

View File

@ -31,7 +31,9 @@ OBJS = $(addprefix $(BUILD)/, $(SRC_S:.s=.o))
OBJS += $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
OBJ_DIRS = $(sort $(dir $(OBJS)))
all: | $(OBJ_DIRS) $(OBJS)
all: $(OBJS)
$(OBJS): | $(OBJ_DIRS)
$(OBJ_DIRS):
$(MKDIR) -p $@