Skip to content

Commit

Permalink
lkl: make a usage of sed portable across bsd and linux
Browse files Browse the repository at this point in the history
Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
  • Loading branch information
thehajime committed Jan 17, 2018
1 parent bbd1206 commit bda5257
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/lkl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ lkl.o: vmlinux

arch/lkl/include/generated/uapi/asm/syscall_defs.h: vmlinux
$(OBJCOPY) -j .syscall_defs -O binary --set-section-flags .syscall_defs=alloc $< $@
sed -i 's/\x0//g' $@
$(Q) export tmpfile=$(shell mktemp); \
sed 's/\x0//g' $@ > $$tmpfile; mv $$tmpfile $@ ; rm -f $$tmpfile

install: lkl.o __headers arch/lkl/include/generated/uapi/asm/syscall_defs.h
@echo " INSTALL $(INSTALL_PATH)/lib/lkl.o"
Expand Down

0 comments on commit bda5257

Please sign in to comment.