Skip to content

Commit

Permalink
Restructure RIOT make
Browse files Browse the repository at this point in the history
  • Loading branch information
LasseRosenow committed Oct 18, 2024
1 parent afba777 commit ea4a2e6
Show file tree
Hide file tree
Showing 23 changed files with 37 additions and 20 deletions.
15 changes: 15 additions & 0 deletions examples/riot/blinky/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# name of your application
APPLICATION = lf-test

# If no BOARD is found in the environment, use this default:
BOARD ?= native

# Comment this out to disable code in RIOT that does safety checking
# which is not needed in a production environment but helps in the
# development process:
DEVELHELP ?= 1

# Change this to 0 show compiler invocation lines by default:
QUIET ?= 1

include $(CURDIR)/../../../make/riot/riot.mk
File renamed without changes.
4 changes: 0 additions & 4 deletions examples/riot/external_modules/nanopb/Makefile

This file was deleted.

4 changes: 0 additions & 4 deletions examples/riot/external_modules/proto/Makefile

This file was deleted.

4 changes: 0 additions & 4 deletions examples/riot/external_modules/reactor-uc/Makefile

This file was deleted.

File renamed without changes.
6 changes: 6 additions & 0 deletions make/riot/external_modules/nanopb/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include $(RIOTBASE)/Makefile.base

SRC_DIR := $(realpath $(CURDIR)/../../../../external/nanopb)

all:
$(QQ)"$(MAKE)" -C $(SRC_DIR) -f $(CURDIR)/nanopb.mk
File renamed without changes.
6 changes: 6 additions & 0 deletions make/riot/external_modules/proto/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include $(RIOTBASE)/Makefile.base

SRC_DIR := $(realpath $(CURDIR)/../../../../external/proto)

all:
$(QQ)"$(MAKE)" -C $(SRC_DIR) -f $(CURDIR)/proto.mk
File renamed without changes.
6 changes: 6 additions & 0 deletions make/riot/external_modules/reactor-uc/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include $(RIOTBASE)/Makefile.base

SRC_DIR := $(realpath $(CURDIR)/../../../../src)

all:
$(QQ)"$(MAKE)" -C $(SRC_DIR) -f $(CURDIR)/reactor-uc.mk
12 changes: 4 additions & 8 deletions ...g_tcp_ip_channel_server_callback/Makefile → make/riot/riot.mk
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
# name of your application
APPLICATION = lf-test

# If no BOARD is found in the environment, use this default:
BOARD ?= native
RIOT_MK_DIR := $(dir $(lastword $(MAKEFILE_LIST)))

# This has to be the absolute path to the RIOT base directory:
RIOTBASE ?= $(CURDIR)/../../../../../RIOT
RIOTBASE ?= $(RIOT_MK_DIR)/../../../RIOT

# Comment this out to disable code in RIOT that does safety checking
# which is not needed in a production environment but helps in the
Expand All @@ -19,7 +15,7 @@ QUIET ?= 1
FEATURES_OPTIONAL += periph_timer

# External modules
EXTERNAL_MODULE_DIRS += ../../external_modules
EXTERNAL_MODULE_DIRS += $(RIOT_MK_DIR)/external_modules
USEMODULE += reactor-uc

include $(RIOTBASE)/Makefile.include
include $(RIOTBASE)/Makefile.include
Empty file removed src/network_bundles.c
Empty file.

0 comments on commit ea4a2e6

Please sign in to comment.