Lines Matching +full:bit +full:- +full:shift
1 # SPDX-License-Identifier: GPL-2.0
4 CFLAGS += -I../shared -I. -I../../include -I../../arch/$(SRCARCH)/include \
5 -I../../../lib -g -Og -Wall \
6 -D_LGPL_SOURCE -fsanitize=address -fsanitize=undefined
8 LDFLAGS += -fsanitize=address -fsanitize=undefined
9 LDLIBS += -lpthread -lurcu
11 SHARED_OFILES = xarray-shared.o radix-tree.o idr.o linux.o $(LIBS)
13 SHARED_DEPS = Makefile ../shared/shared.mk ../shared/*.h generated/map-shift.h \
14 generated/bit-length.h generated/autoconf.h \
20 ../../../include/linux/radix-tree.h \
21 ../../../lib/radix-tree.h \
26 ifndef SHIFT
27 SHIFT=3
31 CFLAGS += -m32
32 LDFLAGS += -m32
41 $(CC) -c $(CFLAGS) $< -o $@
47 radix-tree.c: ../../../lib/radix-tree.c
48 sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < $< > $@
51 sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < $< > $@
53 xarray-shared.o: ../shared/xarray-shared.c ../../../lib/xarray.c \
56 maple-shared.o: ../shared/maple-shared.c ../../../lib/maple_tree.c \
60 @mkdir -p generated
63 generated/map-shift.h:
64 @mkdir -p generated
65 @if ! grep -qws $(SHIFT) generated/map-shift.h; then \
67 echo "#define XA_CHUNK_SHIFT $(SHIFT)" > \
68 generated/map-shift.h; \
71 generated/bit-length.h: FORCE
72 @mkdir -p generated
73 @if ! grep -qws CONFIG_$(LONG_BIT)BIT generated/bit-length.h; then \
75 echo "#define CONFIG_$(LONG_BIT)BIT 1" > $@; \
76 echo "#define CONFIG_PHYS_ADDR_T_$(LONG_BIT)BIT 1" >> $@; \