mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-03 16:37:43 +00:00
input-tools: fix jscal build, ensure target dir exists
And at the same time only build enabled applets. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
fbda120387
commit
fbda6575f0
@ -21,18 +21,20 @@ endef
|
|||||||
|
|
||||||
INPUT_TOOLS_POST_PATCH_HOOKS = INPUT_TOOLS_DEBIAN_PATCHES
|
INPUT_TOOLS_POST_PATCH_HOOKS = INPUT_TOOLS_DEBIAN_PATCHES
|
||||||
|
|
||||||
|
# jscal needs -lm
|
||||||
define INPUT_TOOLS_BUILD_CMDS
|
define INPUT_TOOLS_BUILD_CMDS
|
||||||
(cd $(@D)/utils; \
|
for i in $(filter-out jscal,$(INPUT_TOOLS_TARGETS_y)); do \
|
||||||
$(TARGET_CC) $(TARGET_CFLAGS) -o evtest evtest.c; \
|
$(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$$i $(@D)/utils/$$i.c; \
|
||||||
$(TARGET_CC) $(TARGET_CFLAGS) -o inputattach inputattach.c; \
|
done
|
||||||
$(TARGET_CC) $(TARGET_CFLAGS) -o jscal jscal.c; \
|
for i in $(filter jscal,$(INPUT_TOOLS_TARGETS_y)); do \
|
||||||
$(TARGET_CC) $(TARGET_CFLAGS) -o jstest jstest.c; \
|
$(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$$i $(@D)/utils/$$i.c -lm; \
|
||||||
)
|
done
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define INPUT_TOOLS_INSTALL_TARGET_CMDS
|
define INPUT_TOOLS_INSTALL_TARGET_CMDS
|
||||||
test -z "$(INPUT_TOOLS_TARGETS_y)" || \
|
for i in $(INPUT_TOOLS_TARGETS_y); do \
|
||||||
install -m 755 $(addprefix $(@D)/utils/,$(INPUT_TOOLS_TARGETS_y)) $(TARGET_DIR)/usr/bin/
|
install -m 755 -D $(@D)/$$i $(TARGET_DIR)/usr/bin/$$i; \
|
||||||
|
done
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define INPUT_TOOLS_UNINSTALL_TARGET_CMDS
|
define INPUT_TOOLS_UNINSTALL_TARGET_CMDS
|
||||||
@ -40,7 +42,7 @@ define INPUT_TOOLS_UNINSTALL_TARGET_CMDS
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define INPUT_TOOLS_CLEAN_CMDS
|
define INPUT_TOOLS_CLEAN_CMDS
|
||||||
rm -f $(addprefix $(@D)/utils/,$(INPUT_TOOLS_TARGETS_y))
|
rm -f $(addprefix $(@D)/,$(INPUT_TOOLS_TARGETS_y))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call GENTARGETS,package,input-tools))
|
$(eval $(call GENTARGETS,package,input-tools))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user