Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: veqcc <ryuta.kambe@tier4.jp>
  • Loading branch information
veqcc committed Mar 4, 2025
1 parent 8a90716 commit 3079e1c
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions agnocast_kmod/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ ccflags-y += -Wall -Werror
ifneq ($(KUNIT_BUILD),y)
obj-m := agnocast.o
else
ifeq ($(CONFIG_KUNIT),y) and ($(CONFIG_GCOV_KERNEL),y)
ifeq ($(CONFIG_KUNIT)$(CONFIG_GCOV_KERNEL),yy)
obj-m := agnocast_kunit.o
agnocast_kunit-m := agnocast_kunit_main.o agnocast.o \
agnocast_kunit/agnocast_kunit_subscriber_add.o \
agnocast_kunit/agnocast_kunit_publisher_add.o \
agnocast_kunit/agnocast_kunit_increment_rc.o \
agnocast_kunit/agnocast_kunit_decrement_rc.o \
agnocast_kunit/agnocast_kunit_receive_msg.o \
agnocast_kunit/agnocast_kunit_publish_msg.o \
agnocast_kunit/agnocast_kunit_take_msg.o \
agnocast_kunit/agnocast_kunit_new_shm.o \
agnocast_kunit/agnocast_kunit_get_subscriber_num.o \
agnocast_kunit/agnocast_kunit_get_topic_list.o
agnocast_kunit/agnocast_kunit_subscriber_add.o \
agnocast_kunit/agnocast_kunit_publisher_add.o \
agnocast_kunit/agnocast_kunit_increment_rc.o \
agnocast_kunit/agnocast_kunit_decrement_rc.o \
agnocast_kunit/agnocast_kunit_receive_msg.o \
agnocast_kunit/agnocast_kunit_publish_msg.o \
agnocast_kunit/agnocast_kunit_take_msg.o \
agnocast_kunit/agnocast_kunit_new_shm.o \
agnocast_kunit/agnocast_kunit_get_subscriber_num.o \
agnocast_kunit/agnocast_kunit_get_topic_list.o
ccflags-y += -DKUNIT_BUILD -fprofile-arcs -ftest-coverage
else
$(warning "CONFIG_KUNIT or CONFIG_GCOV_KERNEL is not set")
Expand All @@ -38,7 +38,6 @@ ifeq ($(shell expr $(KERNEL_MAJOR) \< 5 \| $(KERNEL_MAJOR) = 5 \& $(KERNEL_MINOR
ccflags-y += -std=gnu11
endif


# In Linux kernel versions v6.4 and earlier, the top-level Makefile includes
# -Wdeclaration-after-statement, which requires all variables used within
# a function to be declared at the beginning of the function. To suppress
Expand Down

0 comments on commit 3079e1c

Please sign in to comment.