Skip to content

Instantly share code, notes, and snippets.

@jauderho
Created June 19, 2010 12:08
Show Gist options
  • Save jauderho/444843 to your computer and use it in GitHub Desktop.
Save jauderho/444843 to your computer and use it in GitHub Desktop.
ifeq ($(DEVICE),pre)
MARCH_TUNE := -Os -march=armv7-a -mcpu=cortex-a8 -mtune=cortex-a8
PARCH := armv7
else
ifeq ($(DEVICE),pixi)
MARCH_TUNE := -Os -march=armv6j -mcpu=arm1136jf-s -mtune=arm1136jf-s
PARCH := armv6
endif
endif
KERNEL_BUILD_PATH ?= "/build/webos-14x/beta/linux-2.6.24.7-test"
XVM = sub-projects/allocators/xvmalloc-kmod
EXTRA_CFLAGS := -DCONFIG_BLK_DEV_RAMZSWAP_STATS \
-I$(PWD)/$(XVM) \
-Wall ${MARCH_TUNE}
obj-m += ramzswap.o
modules:
${MAKE} -C $(KERNEL_BUILD_PATH) M=$(PWD)/$(XVM) modules
${MAKE} -C $(KERNEL_BUILD_PATH) M=$(PWD) modules
modules_install:
${MAKE} -C $(KERNEL_BUILD_PATH) M=$(PWD)/$(XVM) modules_install
${MAKE} -C $(KERNEL_BUILD_PATH) M=$(PWD) modules_install
clean:
${MAKE} -C $(KERNEL_BUILD_PATH) M=$(PWD) clean
${MAKE} -C $(KERNEL_BUILD_PATH) M=$(PWD)/$(XVM) clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment