-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NuttX generate Make.defs per config from PX4 cmake (#8573)
- Loading branch information
Showing
66 changed files
with
40 additions
and
5,408 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
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,5 +1,5 @@ | ||
############################################################################ | ||
# configs/px4fmu-v2_upstream/src/Makefile | ||
# nuttx-configs/Make.defs | ||
# | ||
# Copyright (C) 2011 Gregory Nutt. All rights reserved. | ||
# Author: Gregory Nutt <[email protected]> | ||
|
@@ -33,51 +33,39 @@ | |
# | ||
############################################################################ | ||
|
||
-include $(TOPDIR)/Make.defs | ||
include $(TOPDIR)/.config | ||
include $(TOPDIR)/tools/Config.mk | ||
|
||
CFLAGS += -I$(TOPDIR)/sched | ||
CC = ${C_COMPILER} | ||
CXX = ${CXX_COMPILER} | ||
CPP = ${C_COMPILER} -E | ||
LD = ${LD} | ||
AR = ${CMAKE_AR} rcs | ||
NM = ${CMAKE_NM} | ||
OBJCOPY = ${CMAKE_OBJCOPY} | ||
OBJDUMP = ${CMAKE_OBJDUMP} | ||
|
||
ASRCS = | ||
AOBJS = $(ASRCS:.S=$(OBJEXT)) | ||
CFLAGS = -Os -g2 -I${PX4_SOURCE_DIR}/src/include ${CMAKE_C_FLAGS} -I. -isystem $(TOPDIR)/include \ | ||
-Wno-bad-function-cast \ | ||
-Wno-cpp \ | ||
-Wno-float-equal \ | ||
-Wno-implicit-fallthrough \ | ||
-Wno-implicit-function-declaration \ | ||
-Wno-maybe-uninitialized \ | ||
-Wno-missing-declarations \ | ||
-Wno-missing-field-initializers \ | ||
-Wno-missing-prototypes \ | ||
-Wno-nested-externs \ | ||
-Wno-nonnull-compare \ | ||
-Wno-old-style-declaration \ | ||
-Wno-sign-compare \ | ||
-Wno-type-limits | ||
|
||
CSRCS = empty.c | ||
COBJS = $(CSRCS:.c=$(OBJEXT)) | ||
CXXFLAGS = -Os -g2 -I${PX4_SOURCE_DIR}/src/include ${CMAKE_CXX_FLAGS} -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx \ | ||
-fcheck-new \ | ||
-fno-builtin \ | ||
-Wno-double-promotion \ | ||
-Wno-maybe-uninitialized \ | ||
-Wno-missing-declarations | ||
|
||
SRCS = $(ASRCS) $(CSRCS) | ||
OBJS = $(AOBJS) $(COBJS) | ||
|
||
ARCH_SRCDIR = $(TOPDIR)/arch/$(CONFIG_ARCH)/src | ||
ifeq ($(WINTOOL),y) | ||
CFLAGS += -I "${shell cygpath -w $(ARCH_SRCDIR)/chip}" \ | ||
-I "${shell cygpath -w $(ARCH_SRCDIR)/common}" \ | ||
-I "${shell cygpath -w $(ARCH_SRCDIR)/armv7-m}" | ||
else | ||
CFLAGS += -I$(ARCH_SRCDIR)/chip -I$(ARCH_SRCDIR)/common -I$(ARCH_SRCDIR)/armv7-m | ||
endif | ||
|
||
all: libboard$(LIBEXT) | ||
|
||
$(AOBJS): %$(OBJEXT): %.S | ||
$(call ASSEMBLE, $<, $@) | ||
|
||
$(COBJS) $(LINKOBJS): %$(OBJEXT): %.c | ||
$(call COMPILE, $<, $@) | ||
|
||
libboard$(LIBEXT): $(OBJS) | ||
$(call ARCHIVE, $@, $(OBJS)) | ||
|
||
.depend: Makefile $(SRCS) | ||
$(Q) $(MKDEP) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep | ||
$(Q) touch $@ | ||
|
||
depend: .depend | ||
|
||
clean: | ||
$(call DELFILE, libboard$(LIBEXT)) | ||
$(call CLEAN) | ||
|
||
distclean: clean | ||
$(call DELFILE, Make.dep) | ||
$(call DELFILE, .depend) | ||
|
||
-include Make.dep | ||
AFLAGS = $(CFLAGS) -D__ASSEMBLY__ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.