Use dentry_path() to create full path to inode object
[pohmelfs.git] / arch / xtensa / boot / ramdisk / Makefile
blobb12f763524386e5e70d89bcba986be5e064d1d0a
2 # Makefile for a ramdisk image
5 BIG_ENDIAN := $(shell echo -e "\#ifdef __XTENSA_EL__\nint little;\n\#else\nint big;\n\#endif" | $(CC) -E -|grep -c big)
7 ifeq ($(BIG_ENDIAN),1)
8 OBJCOPY_ARGS := -O elf32-xtensa-be
9 else
10 OBJCOPY_ARGS := -O elf32-xtensa-le
11 endif
13 obj-y = ramdisk.o
15 RAMDISK_IMAGE = arch/$(ARCH)/boot/ramdisk/$(CONFIG_EMBEDDED_RAMDISK_IMAGE)
17 arch/$(ARCH)/boot/ramdisk/ramdisk.o:
18 $(Q)echo -e "dummy:" | $(AS) -o $@;
19 $(Q)$(OBJCOPY) $(OBJCOPY_ARGS) \
20 --add-section .initrd=$(RAMDISK_IMAGE) \
21 --set-section-flags .initrd=contents,alloc,load,load,data \
22 arch/$(ARCH)/boot/ramdisk/ramdisk.o $@