1 #define false guards, so we compile everything
4 CHECK_BLOCKIOCTL
= blockio
5 CHECK_FREEZER
= freezer
7 CHECK_CPUSETCTL
= cpuset
11 ifeq ($(CHECK_CGROUP
),cgroup
)
14 $(info "Kernel is not compiled with control cgroup support")
17 ifeq ($(CHECK_MEMCTL
),memory
)
20 $(info "Kernel is not compiled with memory resource controller support")
23 ifeq ($(CHECK_CPUCTL
),cpu
)
26 $(info "Kernel is not compiled with cpu controller support")
28 ifeq ($(CHECK_MEMCTL
),memory
)
31 $(info "Kernel is not compiled with memory resource controller support")
33 ifeq ($(CHECK_BLOCKIOCTL
),blockio
)
34 SUBDIRS
+= io-throttle
36 $(info "Kernel is not compiled with blockio resource controller support")
38 ifeq ($(CHECK_FREEZER
),freezer
)
41 $(info "Kernel is not compiled with cgroup freezer support")
43 ifeq ($(CHECK_CPUSETCTL
),cpuset
)
46 $(info "Kernel is not compiled with cpuset resource controller support")
49 # If at least one of the controllers is available then build libcontrollers.
51 SUBDIRS
:= libcontrollers
$(SUBDIRS
)
54 .PHONY
: all install clean
57 @set
-e
; for i in
$(SUBDIRS
); do
$(MAKE
) -C
$$i $@
; done
59 install: test_controllers.sh
60 @chmod ugo
+x test_controllers.sh
61 @ln
-f test_controllers.sh ..
/..
/bin
/test_controllers.sh
62 @set
-e
; for i in
$(SUBDIRS
); do
$(MAKE
) -C
$$i $@
; done
65 @set
-e
; for i in
$(SUBDIRS
); do
$(MAKE
) -C
$$i $@
; done