Skip to content

Commit

Permalink
kbuild: Add work-around for matching source and object filename
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Krakow <[email protected]>
  • Loading branch information
kakra committed Apr 3, 2021
1 parent 63def60 commit 2a17ce1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ hid-xpadneo/src/*.ko*
hid-xpadneo/src/*.mod*
hid-xpadneo/src/*.o*
hid-xpadneo/src/*.symvers*

#FIXME(kakra) remove after source file split
hid-xpadneo/src/xpadneo.c
5 changes: 5 additions & 0 deletions hid-xpadneo/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
#
ccflags-y += -DVERSION=$(VERSION)
obj-m += hid-xpadneo.o

#FIXME(kakra) Work-around, cleanup after source code split
hid-xpadneo-y += xpadneo.o
$(obj)/xpadneo.c: $(src)/hid-xpadneo.c
cp $< $@

0 comments on commit 2a17ce1

Please sign in to comment.