tools/gpio: remove old Makefile
PATCH 2/3 tools/gpio: move to tools buildsystem
In reply to Andy ShevchenkoThere is a nice buildsystem dedicated for userspace tools in Linux kernel tree. Switch gpio target to be built by it.
Signed-off-by Andy Shevchenko <[email protected]>
--- tools/gpio/Build | 3 +++ tools/gpio/Makefile | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 tools/gpio/Build create mode 100644 tools/gpio/Makefile
tools/gpio/Build new file +3 -0
@@ -0,0 +1,3 @@ +lsgpio-y += lsgpio.o gpio-utils.o +gpio-hammer-y += gpio-hammer.o gpio-utils.o +gpio-event-mon-y += gpio-event-mon.o gpio-utils.o
tools/gpio/Makefile new file +77 -0
77 lines not on this page · raw message
Signature · 1 line
2.8.1
PATCH 3/3 tools/gpio: add install section
In reply to Andy ShevchenkoAllow user to call install target.
Signed-off-by Andy Shevchenko <[email protected]>
--- tools/Makefile | 7 ++++--- tools/gpio/Makefile | 8 +++++++- 2 files changed, 11 insertions(+), 4 deletions(-)
tools/Makefile +4 -3
@@ -85,7 +85,7 @@ tmon: FORCE freefall: FORCE $(call descend,laptop/$@) -all: acpi cgroup cpupower hv firewire lguest \ +all: acpi cgroup cpupower gpio hv firewire lguest \ perf selftests turbostat usb \ virtio vm net x86_energy_perf_policy \ tmon freefall objtool
@@ -96,7 +96,7 @@ acpi_install: cpupower_install: $(call descend,power/$(@:_install=),install) -cgroup_install firewire_install hv_install lguest_install perf_install usb_install virtio_install vm_install net_install objtool_install: +cgroup_install firewire_install gpio_install hv_install lguest_install perf_install usb_install virtio_install vm_install net_install objtool_install: $(call descend,$(@:_install=),install) selftests_install:
@@ -114,7 +114,8 @@ freefall_install: kvm_stat_install: $(call descend,kvm/$(@:_install=),install) -install: acpi_install cgroup_install cpupower_install hv_install firewire_install lguest_install \ +install: acpi_install cgroup_install cpupower_install gpio_install \ + hv_install firewire_install lguest_install \ perf_install selftests_install turbostat_install usb_install \ virtio_install vm_install net_install x86_energy_perf_policy_install \ tmon_install freefall_install objtool_install kvm_stat_install
tools/gpio/Makefile +7 -1
@@ -72,6 +72,12 @@ clean: $(Q)rm -f $(OUTPUT)include/linux/gpio.h $(Q)find $(if $(OUTPUT),$(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete +install: $(ALL_PROGRAMS) + $(Q)install -d -m 755 $(DESTDIR)$(bindir); \ + $(Q)for program in $(ALL_PROGRAMS); do \ + $(Q)install $$program $(DESTDIR)$(bindir); \ + done + FORCE: -.PHONY: all clean FORCE prepare +.PHONY: all install clean FORCE prepare
Signature · 1 line
2.8.1
PATCH 1/3 tools/gpio: remove old Makefile
Prepare to switch to tools build system, i.e. remove Makefile completely. There is no much sense to keep it since it will be rewritten (almost) completely.
Signed-off-by Andy Shevchenko <[email protected]>
--- tools/gpio/Makefile | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 tools/gpio/Makefile
tools/gpio/Makefile deleted +0 -14
@@ -1,14 +0,0 @@ -CC = $(CROSS_COMPILE)gcc -CFLAGS += -O2 -Wall -g -D_GNU_SOURCE - -all: lsgpio gpio-hammer gpio-event-mon - -lsgpio: lsgpio.o gpio-utils.o -gpio-hammer: gpio-hammer.o gpio-utils.o -gpio-event-mon: gpio-event-mon.o gpio-utils.o - -%.o: %.c gpio-utils.h - -.PHONY: clean -clean: - rm -f *.o lsgpio gpio-hammer gpio-event-mon
Signature · 1 line
2.8.1