Skip to content

Commit

Permalink
[airborne] rename arch/omap to arch/linux
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Nov 24, 2014
1 parent 0bafabc commit 3523b88
Show file tree
Hide file tree
Showing 23 changed files with 48 additions and 45 deletions.
4 changes: 2 additions & 2 deletions conf/Makefile.ardrone2
Expand Up @@ -20,10 +20,10 @@
#

#
# This Makefile uses the generic Makefile.omap and adds upload rules for the ARDrone2
# This Makefile uses the generic Makefile.linux and adds upload rules for the ARDrone2
#

include $(PAPARAZZI_SRC)/conf/Makefile.omap
include $(PAPARAZZI_SRC)/conf/Makefile.linux

DRONE = $(PAPARAZZI_SRC)/sw/ext/ardrone2_drivers/ardrone2.py

Expand Down
19 changes: 11 additions & 8 deletions conf/Makefile.omap → conf/Makefile.linux
Expand Up @@ -20,6 +20,9 @@
# Boston, MA 02111-1307, USA.
#

#
# Makefile for linux targets (e.g. OMAP, BBB, ARDrone)
#

#
# find compiler toolchain
Expand Down Expand Up @@ -65,11 +68,11 @@ CXXFLAGS += -Wall -Wextra
CXXFLAGS += $($(TARGET).CXXFLAGS)
CXXFLAGS += $(USER_CFLAGS)

SRC_C_OMAP = $($(TARGET).srcs)
OBJ_C_OMAP = $(SRC_C_OMAP:%.c=$(OBJDIR)/%.o)
SRC_C_LINUX = $($(TARGET).srcs)
OBJ_C_LINUX = $(SRC_C_LINUX:%.c=$(OBJDIR)/%.o)

SRC_CPP_OMAP = $($(TARGET).cpp_srcs)
OBJ_CPP_OMAP = $(SRC_CPP_OMAP:%.cpp=$(OBJDIR)/%.o)
SRC_CPP_LINUX = $($(TARGET).cpp_srcs)
OBJ_CPP_LINUX = $(SRC_CPP_LINUX:%.cpp=$(OBJDIR)/%.o)

printcommands:
@echo ""
Expand All @@ -94,12 +97,12 @@ elf: $(OBJDIR)/$(TARGET).elf

# Link: create ELF output file from object files.
.SECONDARY : $(OBJDIR)/$(TARGET).elf
.PRECIOUS : $(OBJ_C_OMAP) $(OBJ_CPP_OMAP)
%.elf: $(OBJ_C_OMAP) $(OBJ_CPP_OMAP)
.PRECIOUS : $(OBJ_C_LINUX) $(OBJ_CPP_LINUX)
%.elf: $(OBJ_C_LINUX) $(OBJ_CPP_LINUX)
@echo LD $@
$(Q)if (expr "$($(TARGET).cpp_srcs)"); \
then $(CXX) $(CXXFLAGS) $(OBJ_CPP_OMAP) $(OBJ_C_OMAP) --output $@ $(LDFLAGS) $($(TARGET).LDFLAGS); \
else $(CC) $(CFLAGS) $(OBJ_C_OMAP) --output $@ $(LDFLAGS) $($(TARGET).LDFLAGS); fi
then $(CXX) $(CXXFLAGS) $(OBJ_CPP_LINUX) $(OBJ_C_LINUX) --output $@ $(LDFLAGS) $($(TARGET).LDFLAGS); \
else $(CC) $(CFLAGS) $(OBJ_C_LINUX) --output $@ $(LDFLAGS) $($(TARGET).LDFLAGS); fi

# Compile: create object files from C source files
$(OBJDIR)/%.o : %.c $(OBJDIR)/../Makefile.ac
Expand Down
4 changes: 2 additions & 2 deletions conf/boards/ardrone2_raw.makefile
Expand Up @@ -10,9 +10,9 @@ BOARD_VERSION=2
BOARD_TYPE=raw
BOARD_CFG=\"boards/$(BOARD)$(BOARD_VERSION)_$(BOARD_TYPE).h\"

ARCH=omap
ARCH=linux
$(TARGET).ARCHDIR = $(ARCH)
# include conf/Makefile.ardrone2 (with specific upload rules) instead of only Makefile.omap:
# include conf/Makefile.ardrone2 (with specific upload rules) instead of only Makefile.linux:
ap.MAKEFILE = ardrone2

# -----------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions conf/boards/ardrone2_sdk.makefile
Expand Up @@ -10,9 +10,9 @@ BOARD_VERSION=2
BOARD_TYPE=sdk
BOARD_CFG=\"boards/$(BOARD)$(BOARD_VERSION)_$(BOARD_TYPE).h\"

ARCH=omap
ARCH=linux
$(TARGET).ARCHDIR = $(ARCH)
# include conf/Makefile.ardrone2 (with specific upload rules) instead of only Makefile.omap:
# include conf/Makefile.ardrone2 (with specific upload rules) instead of only Makefile.linux:
ap.MAKEFILE = ardrone2

# -----------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion conf/boards/lisa_l_1.0.makefile
Expand Up @@ -13,7 +13,7 @@ $(TARGET).LDSCRIPT=$(SRC_ARCH)/lisa-l.ld
# -----------------------------------------------------------------------
ifeq ($(BOARD_PROCESSOR),'omap')

ARCH = omap
ARCH = linux
$(TARGET).LDFLAGS += -levent -lm

# -----------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion conf/boards/lisa_l_1.1.makefile
Expand Up @@ -16,7 +16,7 @@ $(TARGET).LDSCRIPT=$(SRC_ARCH)/lisa-l.ld
# -----------------------------------------------------------------------
ifeq ($(BOARD_PROCESSOR),'omap')

ARCH = omap
ARCH = linux
$(TARGET).LDFLAGS += -levent -lm

# -----------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions conf/firmwares/rotorcraft.makefile
Expand Up @@ -105,7 +105,7 @@ $(TARGET).srcs += $(SRC_ARCH)/mcu_periph/i2c_arch.c
#
# Electrical subsystem / Analog Backend
#
ifneq ($(ARCH), omap)
ifneq ($(ARCH), linux)
$(TARGET).CFLAGS += -DUSE_ADC
$(TARGET).srcs += $(SRC_ARCH)/mcu_periph/adc_arch.c
$(TARGET).srcs += subsystems/electrical.c
Expand Down Expand Up @@ -158,7 +158,7 @@ endif

ns_srcs += mcu_periph/uart.c
ns_srcs += $(SRC_ARCH)/mcu_periph/uart_arch.c
ifeq ($(ARCH), omap)
ifeq ($(ARCH), linux)
ns_srcs += $(SRC_ARCH)/serial_port.c
endif

Expand Down
Expand Up @@ -21,8 +21,8 @@
*/

/**
* @file arch/omap/led_hw.h
* omap arch dependant LED macros.
* @file arch/linux/led_hw.h
* linux arch dependant LED macros.
*/

#ifndef LED_HW_H_
Expand Down
Expand Up @@ -21,8 +21,8 @@
*/

/**
* @file arch/omap/mcu_arch.h
* omap arch dependant microcontroller initialisation functions.
* @file arch/linux/mcu_arch.h
* linux arch dependant microcontroller initialisation functions.
*
* Because Linux runs on omap, we don't have to initialize the MCU ourselves.
*/
Expand Down
Expand Up @@ -21,8 +21,8 @@
*/

/**
* @file arch/omap/mcu_arch.c
* omap arch dependant microcontroller initialisation functions.
* @file arch/linux/mcu_arch.c
* linux arch dependant microcontroller initialisation functions.
*
* Because Linux runs on omap, we don't have to initialize the MCU ourselves.
*/
Expand Down
Expand Up @@ -20,7 +20,7 @@
*/

/**
* @file arch/omap/mcu_periph/gpio_arch.h
* @file arch/linux/mcu_periph/gpio_arch.h
*
* GPIO helper functions for linux/omap.
* @todo implement gpio_set|clear
Expand Down
Expand Up @@ -21,7 +21,7 @@
*
*/

/** @file arch/omap/mcu_periph/i2c_arch.c
/** @file arch/linux/mcu_periph/i2c_arch.c
* I2C functionality
*/

Expand Down
Expand Up @@ -21,12 +21,12 @@
*
*/

/** @file arch/omap/mcu_periph/i2c_arch.h
/** @file arch/linux/mcu_periph/i2c_arch.h
* I2C functionality
*/

#ifndef OMAP_MCU_PERIPH_I2C_ARCH_H
#define OMAP_MCU_PERIPH_I2C_ARCH_H
#ifndef LINUX_MCU_PERIPH_I2C_ARCH_H
#define LINUX_MCU_PERIPH_I2C_ARCH_H

#include "mcu_periph/i2c.h"

Expand All @@ -45,4 +45,4 @@ extern void i2c2_hw_init(void);
#endif /* USE_I2C2 */


#endif /* OMAP_MCU_PERIPH_I2C_ARCH_H */
#endif /* LINUX_MCU_PERIPH_I2C_ARCH_H */
Expand Up @@ -23,7 +23,7 @@
/* $Id: i2c-dev.h 5361 2008-10-19 09:47:02Z khali $ */

/**
* @file arch/omap/mcu_periph/i2c_smbus.h
* @file arch/linux/mcu_periph/i2c_smbus.h
* I2C-bus driver
*/

Expand Down
Expand Up @@ -20,8 +20,8 @@
* Boston, MA 02111-1307, USA.
*/

/** @file arch/omap/mcu_periph/sys_time_arch.h
* omap timing functions
/** @file arch/linux/mcu_periph/sys_time_arch.h
* linux timing functions
*/

#include "mcu_periph/sys_time.h"
Expand Down
Expand Up @@ -21,8 +21,8 @@
*
*/

/** @file arch/omap/mcu_periph/sys_time_arch.h
* omap timing functions
/** @file arch/linux/mcu_periph/sys_time_arch.h
* linux timing functions
*/

#ifndef SYS_TIME_ARCH_H
Expand Down
Expand Up @@ -19,8 +19,8 @@
* Boston, MA 02111-1307, USA.
*/

/** @file arch/omap/mcu_periph/uart_arch.c
* omap uart handling
/** @file arch/linux/mcu_periph/uart_arch.c
* linux uart handling
*/

#include "mcu_periph/uart.h"
Expand Down
Expand Up @@ -19,8 +19,8 @@
* Boston, MA 02111-1307, USA.
*/

/** @file arch/omap/mcu_periph/uart_arch.h
* omap uart handling
/** @file arch/linux/mcu_periph/uart_arch.h
* linux uart handling
*/

#ifndef UART_ARCH_H
Expand Down
Expand Up @@ -19,8 +19,8 @@
* Boston, MA 02111-1307, USA.
*/

/** @file arch/omap/mcu_periph/udp_arch.c
* omap UDP handling
/** @file arch/linux/mcu_periph/udp_arch.c
* linux UDP handling
*/

#include "mcu_periph/udp.h"
Expand Down
Expand Up @@ -19,8 +19,8 @@
* Boston, MA 02111-1307, USA.
*/

/** @file arch/omap/mcu_periph/udp_arch.h
* omap UDP handling
/** @file arch/linux/mcu_periph/udp_arch.h
* linux UDP handling
*/

#ifndef UDP_ARCH_H
Expand Down
File renamed without changes.
File renamed without changes.
Expand Up @@ -20,8 +20,8 @@
*/

/**
* @file arch/omap/subsystems/settings_arch.c
* OMAP arch Persistent settings.
* @file arch/linux/subsystems/settings_arch.c
* linux arch Persistent settings.
*
* Unimplemented.
*/
Expand Down

0 comments on commit 3523b88

Please sign in to comment.