diff options
Diffstat (limited to 'kernel/time/Makefile')
| -rw-r--r-- | kernel/time/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/kernel/time/Makefile b/kernel/time/Makefile index 57a413fd0ebf..7347426fa68d 100644 --- a/kernel/time/Makefile +++ b/kernel/time/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | obj-y += time.o timer.o hrtimer.o itimer.o posix-timers.o posix-cpu-timers.o | ||
| 1 | obj-y += timekeeping.o ntp.o clocksource.o jiffies.o timer_list.o | 2 | obj-y += timekeeping.o ntp.o clocksource.o jiffies.o timer_list.o |
| 2 | obj-y += timeconv.o posix-clock.o alarmtimer.o | 3 | obj-y += timeconv.o posix-clock.o alarmtimer.o |
| 3 | 4 | ||
| @@ -12,3 +13,21 @@ obj-$(CONFIG_TICK_ONESHOT) += tick-oneshot.o | |||
| 12 | obj-$(CONFIG_TICK_ONESHOT) += tick-sched.o | 13 | obj-$(CONFIG_TICK_ONESHOT) += tick-sched.o |
| 13 | obj-$(CONFIG_TIMER_STATS) += timer_stats.o | 14 | obj-$(CONFIG_TIMER_STATS) += timer_stats.o |
| 14 | obj-$(CONFIG_DEBUG_FS) += timekeeping_debug.o | 15 | obj-$(CONFIG_DEBUG_FS) += timekeeping_debug.o |
| 16 | obj-$(CONFIG_TEST_UDELAY) += udelay_test.o | ||
| 17 | |||
| 18 | $(obj)/time.o: $(obj)/timeconst.h | ||
| 19 | |||
| 20 | quiet_cmd_hzfile = HZFILE $@ | ||
| 21 | cmd_hzfile = echo "hz=$(CONFIG_HZ)" > $@ | ||
| 22 | |||
| 23 | targets += hz.bc | ||
| 24 | $(obj)/hz.bc: $(objtree)/include/config/hz.h FORCE | ||
| 25 | $(call if_changed,hzfile) | ||
| 26 | |||
| 27 | quiet_cmd_bc = BC $@ | ||
| 28 | cmd_bc = bc -q $(filter-out FORCE,$^) > $@ | ||
| 29 | |||
| 30 | targets += timeconst.h | ||
| 31 | $(obj)/timeconst.h: $(obj)/hz.bc $(src)/timeconst.bc FORCE | ||
| 32 | $(call if_changed,bc) | ||
| 33 | |||
