xref: /openbmc/linux/kernel/time/Makefile (revision 9f083b74)
15cee9645SThomas Gleixnerobj-y += time.o timer.o hrtimer.o itimer.o posix-timers.o posix-cpu-timers.o
265f8f9a1SRichard Cochranobj-y += timekeeping.o ntp.o clocksource.o jiffies.o timer_list.o
374d23cc7SRichard Cochranobj-y += timeconv.o timecounter.o posix-clock.o alarmtimer.o
4d316c57fSThomas Gleixner
59f083b74SThomas Gleixnerobj-$(CONFIG_GENERIC_CLOCKEVENTS)		+= clockevents.o tick-common.o
6849401b6SPreeti U Murthyifeq ($(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST),y)
7849401b6SPreeti U Murthy obj-y						+= tick-broadcast.o
8849401b6SPreeti U Murthy obj-$(CONFIG_TICK_ONESHOT)			+= tick-broadcast-hrtimer.o
9849401b6SPreeti U Murthyendif
1038ff87f7SStephen Boydobj-$(CONFIG_GENERIC_SCHED_CLOCK)		+= sched_clock.o
119f083b74SThomas Gleixnerobj-$(CONFIG_TICK_ONESHOT)			+= tick-oneshot.o tick-sched.o
1282f67cd9SIngo Molnarobj-$(CONFIG_TIMER_STATS)			+= timer_stats.o
135c83545fSColin Crossobj-$(CONFIG_DEBUG_FS)				+= timekeeping_debug.o
14fd866e2bSJohn Stultzobj-$(CONFIG_TEST_UDELAY)			+= test_udelay.o
155cee9645SThomas Gleixner
165cee9645SThomas Gleixner$(obj)/time.o: $(obj)/timeconst.h
175cee9645SThomas Gleixner
185cee9645SThomas Gleixnerquiet_cmd_hzfile = HZFILE  $@
195cee9645SThomas Gleixner      cmd_hzfile = echo "hz=$(CONFIG_HZ)" > $@
205cee9645SThomas Gleixner
215cee9645SThomas Gleixnertargets += hz.bc
225cee9645SThomas Gleixner$(obj)/hz.bc: $(objtree)/include/config/hz.h FORCE
235cee9645SThomas Gleixner	$(call if_changed,hzfile)
245cee9645SThomas Gleixner
255cee9645SThomas Gleixnerquiet_cmd_bc  = BC      $@
265cee9645SThomas Gleixner      cmd_bc  = bc -q $(filter-out FORCE,$^) > $@
275cee9645SThomas Gleixner
285cee9645SThomas Gleixnertargets += timeconst.h
295cee9645SThomas Gleixner$(obj)/timeconst.h: $(obj)/hz.bc $(src)/timeconst.bc FORCE
305cee9645SThomas Gleixner	$(call if_changed,bc)
31e704f93aSDavid Riley
32