core-y := palacios/src/palacios/
libs-y := palacios/lib/$(ARCH)/
devices-y := palacios/src/devices/
+modules-y := modules/
ifeq ($(dot-config),1)
# In this section, we need .config
palacios-dirs := $(patsubst %/,%,$(filter %/, \
- $(core-y) $(devices-y) $(libs-y)))
+ $(core-y) $(devices-y) $(libs-y)) $(modules-y))
#palacios-alldirs := $(sort $(palacios-dirs) $(patsubst %/,%,$(filter %/, \
# $(core-n) $(core-) $(devices-n) $(devices-) \
palacios-cleandirs := $(sort $(palacios-dirs) $(patsubst %/,%,$(filter %/, \
- $(core-n) $(core-) $(devices-n) $(devices-))))
+ $(core-n) $(core-) $(devices-n) $(devices-) $(modules-n) $(modules-))))
core-y := $(patsubst %/, %/built-in.o, $(core-y))
devices-y := $(patsubst %/, %/built-in.o, $(devices-y))
libs-y := $(patsubst %/, %/built-in.o, $(libs-y))
+modules-y := $(patsubst %/, %/built-in.o, $(modules-y))
#core-y := $(patsubst %/, %/lib.a, $(core-y))
#devices-y := $(patsubst %/, %/lib.a, $(devices-y))
-palacios := $(core-y) $(devices-y) $(libs-y)
+palacios := $(core-y) $(devices-y) $(libs-y) $(modules-y)
# Rule to link palacios - also used during CONFIG_KALLSYMS
# May be overridden by /Makefile.$(ARCH)
$(clean-dirs):
$(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@)
+
+# \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \
clean: archclean $(clean-dirs)
$(call cmd,rmdirs)
$(call cmd,rmfiles)
@find . $(RCS_FIND_IGNORE) \
\( -name 'lib' \) -prune -o \
- \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \
+ \( -name '*.[oas]' -o -name '.*.cmd' \
-o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \) \
-type f -print | xargs rm -f