We should only build hpet_example on x86[-64], where it is implemented. It can cause build errors on other architectures.
Signed-off-by: Randy Dunlap Reported-by: Heiko Carstens Cc: Heiko Carstens Cc: Arjan van de Ven Signed-off-by: Linus Torvalds
# kbuild trick to avoid linker error. Can be omitted if a module is built. obj- := dummy.o # List of programs to build hostprogs-$(CONFIG_X86) := hpet_example # Tell kbuild to always build the programs always := $(hostprogs-y)