Thomas Gleixner | 5cee964 | 2014-06-22 12:06:40 +0200 | [diff] [blame] | 1 | obj-y += time.o timer.o hrtimer.o itimer.o posix-timers.o posix-cpu-timers.o |
Richard Cochran | 65f8f9a | 2012-10-31 06:27:25 +0000 | [diff] [blame] | 2 | obj-y += timekeeping.o ntp.o clocksource.o jiffies.o timer_list.o |
Richard Cochran | 74d23cc | 2014-12-21 19:46:56 +0100 | [diff] [blame] | 3 | obj-y += timeconv.o timecounter.o posix-clock.o alarmtimer.o |
Thomas Gleixner | d316c57 | 2007-02-16 01:28:00 -0800 | [diff] [blame] | 4 | |
Thomas Gleixner | de68d9b | 2007-10-12 23:04:05 +0200 | [diff] [blame] | 5 | obj-$(CONFIG_GENERIC_CLOCKEVENTS_BUILD) += clockevents.o |
Thomas Gleixner | f8381cb | 2007-02-16 01:28:02 -0800 | [diff] [blame] | 6 | obj-$(CONFIG_GENERIC_CLOCKEVENTS) += tick-common.o |
Preeti U Murthy | 849401b | 2014-02-09 11:32:22 +0530 | [diff] [blame] | 7 | ifeq ($(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST),y) |
| 8 | obj-y += tick-broadcast.o |
| 9 | obj-$(CONFIG_TICK_ONESHOT) += tick-broadcast-hrtimer.o |
| 10 | endif |
Stephen Boyd | 38ff87f | 2013-06-01 23:39:40 -0700 | [diff] [blame] | 11 | obj-$(CONFIG_GENERIC_SCHED_CLOCK) += sched_clock.o |
Thomas Gleixner | 79bf2bb | 2007-02-16 01:28:03 -0800 | [diff] [blame] | 12 | obj-$(CONFIG_TICK_ONESHOT) += tick-oneshot.o |
| 13 | obj-$(CONFIG_TICK_ONESHOT) += tick-sched.o |
Ingo Molnar | 82f67cd | 2007-02-16 01:28:13 -0800 | [diff] [blame] | 14 | obj-$(CONFIG_TIMER_STATS) += timer_stats.o |
Colin Cross | 5c83545 | 2013-05-21 22:32:14 -0700 | [diff] [blame] | 15 | obj-$(CONFIG_DEBUG_FS) += timekeeping_debug.o |
John Stultz | fd866e2 | 2014-08-04 11:30:56 -0700 | [diff] [blame] | 16 | obj-$(CONFIG_TEST_UDELAY) += test_udelay.o |
Thomas Gleixner | 5cee964 | 2014-06-22 12:06:40 +0200 | [diff] [blame] | 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) |
David Riley | e704f93 | 2014-06-16 14:58:32 -0700 | [diff] [blame] | 33 | |