# SPDX-License-Identifier: GPL-2.0 # ========================================================================== # Cleaning up # ========================================================================== src := $(obj) PHONY := __clean __clean: include scripts/Kbuild.include # The filename Kbuild has precedence over Makefile kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src)) include $(if $(wildcard $(kbuild-dir)/Kbuild), $(kbuild-dir)/Kbuild, $(kbuild-dir)/Makefile) # Figure out what we need to build from the various variables # ========================================================================== __subdir-y := $(patsubst %/,%,$(filter %/, $(obj-y))) subdir-y += $(__subdir-y) __subdir-m := $(patsubst %/,%,$(filter %/, $(obj-m))) subdir-m += $(__subdir-m) __subdir- := $(patsubst %/,%,$(filter %/, $(obj-))) subdir- += $(__subdir-) # Subdirectories we need to descend into subdir-ym := $(sort $(subdir-y) $(subdir-m)) subdir-ymn := $(sort $(subdir-ym) $(subdir-)) # Add subdir path subdir-ymn := $(addprefix $(obj)/,$(subdir-ymn)) # build a list of files to remove, usually relative to the current # directory __clean-files := $(extra-y) $(extra-m) $(extra-) \ $(always) $(targets) $(clean-files) \ $(hostprogs-y) $(hostprogs-m) $(hostprogs-) \ $(hostlibs-y) $(hostlibs-m) $(hostlibs-) \ $(hostcxxlibs-y) $(hostcxxlibs-m) __clean-files := $(filter-out $(no-clean-files), $(__clean-files)) # clean-files is given relative to the current directory, unless it # starts with $(objtree)/ (which means "./", so do not add "./" unless # you want to delete a file from the toplevel object directory). __clean-files := $(wildcard \ $(addprefix $(obj)/, $(filter-out $(objtree)/%, $(__clean-files))) \ $(filter $(objtree)/%, $(__clean-files))) # same as clean-files __clean-dirs := $(wildcard \ $(addprefix $(obj)/, $(filter-out $(objtree)/%, $(clean-dirs))) \ $(filter $(objtree)/%, $(clean-dirs))) # ========================================================================== quiet_cmd_clean = CLEAN $(obj) cmd_clean = rm -f $(__clean-files) quiet_cmd_cleandir = CLEAN $(__clean-dirs) cmd_cleandir = rm -rf $(__clean-dirs) __clean: $(subdir-ymn) ifneq ($(strip $(__clean-files)),) +$(call cmd,clean) endif ifneq ($(strip $(__clean-dirs)),) +$(call cmd,cleandir) endif @: # =========================================================================== # Generic stuff # =========================================================================== # Descending # --------------------------------------------------------------------------- PHONY += $(subdir-ymn) $(subdir-ymn): $(Q)$(MAKE) $(clean)=$@ .PHONY: $(PHONY) nux-3.13.y Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
path: root/arch/microblaze/lib
AgeCommit message (Expand)Author
2014-07-18microblaze: Change libgcc-style functions from lib-y to obj-yDavid Holsgrove
2013-02-12microblaze: Do not use module.h in files which are not modulesMichal Simek
2013-02-12microblaze: Fix coding style issuesMichal Simek
2013-02-12microblaze: Fix strncpy_from_user macroMichal Simek
2012-12-13microblaze: lib: Add lib function declarationsMichal Simek
2012-12-13microblaze: lib: Remove helper macrosMichal Simek
2012-03-30Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into nextMichal Simek
2012-03-30microblaze: Fix stack usage in PAGE_SIZE copy_tofrom_userMichal Simek
2012-03-28Disintegrate asm/system.h for MicroblazeDavid Howells
2012-01-05microblaze: Add __cmpdi2Michal Simek
2011-10-14microblaze: Use delay slot in __strnlen_user, __strncpy_userMichal Simek
2011-10-14microblaze: Add __ucmpdi2() helper functionMichal Simek
2011-10-14microblaze: Add loop unrolling for PAGE in copy_tofrom_userMichal Simek
2011-10-14microblaze: Simplify logic for unaligned byte copyingMichal Simek
2011-10-14microblaze: Change label names - copy_tofrom_userMichal Simek
2011-10-14microblaze: Separate fixup section definitionMichal Simek
2011-10-14microblaze: Change label name in copy_tofrom_userMichal Simek